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

TestOptionCretionCase00   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_no_underlying_assets() 0 5 1
1
"""Test the creation of Option objects."""
2
3
from __future__ import absolute_import
4
5
import unittest
6
from trade_app.trade.subject import Subject as Asset
7
8
from trade_app.options import Option
9
10
11
class TestOptionCreation(unittest.TestCase):
12
    """Base class for the option creation tests."""
13
14
    def setUp(self):
15
        self.asset = Asset(symbol='GOOGL')
16
17
18
class TestOptionCretionCase00(TestOptionCreation):
19
    """Test the creation of an option."""
20
21
    def test_no_underlying_assets(self):
22
        option = Option(
23
            symbol='OPTIOSYMBOL', expiration_date='2015-12-21'
24
        )
25
        self.assertEqual(option.underlying_assets, {})
26