Passed
Push — master ( 684169...29f120 )
by Rafael S.
01:50
created

TestExercisePremiumCase01   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 7
rs 10
1
"""Test the function to fetch the exercise premium."""
2
3
from __future__ import absolute_import
4
5
from fixtures.operation_sequences import (
6
    OPERATION_SEQUENCE25, OPERATION_SEQUENCE26
7
)
8
from fixtures.assets import OPTION1, ASSET
9
from fixtures.accumulator_states import (
10
    STATE01, STATE06, STATE09,
11
)
12
from test_options.test_portfolio_underlying_asset_accumulation import (
13
    TestPortfolio
14
)
15
16
17
class TestExercisePremiumCase00(TestPortfolio):
18
    """Test the accumulation of one operation with underlying assets."""
19
20
    operations = OPERATION_SEQUENCE25
21
    state = {
22
        ASSET.symbol: STATE09,
23
        OPTION1.symbol: STATE06
24
    }
25
26
27
class TestExercisePremiumCase01(TestPortfolio):
28
    """Test the accumulation of one operation with underlying assets."""
29
30
    operations = OPERATION_SEQUENCE26
31
    state = {
32
        ASSET.symbol: STATE09,
33
        OPTION1.symbol: STATE01
34
    }
35