Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc3b94f

Browse files
author
Siddharta Govindaraj
committed
nose2 - function style test case
1 parent b572b41 commit bc3b94f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stock_alerter/tests/test_stock.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
from ..stock import Stock, StockSignal
66

77

8+
def test_price_of_a_new_stock_class_should_be_None():
9+
goog = Stock("GOOG")
10+
assert goog.price is None
11+
12+
813
class StockTest(unittest.TestCase):
914
def setUp(self):
1015
self.goog = Stock("GOOG")

0 commit comments

Comments
 (0)