for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Test the creation of Option objects."""
from __future__ import absolute_import
import unittest
from trade_app.trade.subject import Subject as Asset
from trade_app.options import Option
class TestOptionCreation(unittest.TestCase):
"""Base class for the option creation tests."""
def setUp(self):
self.asset = Asset(symbol='GOOGL')
class TestOptionCretionCase00(TestOptionCreation):
"""Test the creation of an option."""
def test_no_underlying_assets(self):
option = Option(
symbol='OPTIOSYMBOL', expiration_date='2015-12-21'
)
self.assertEqual(option.underlying_assets, {})