Merge pull request #66 from jarlethorsen/patch-1
Update ex5_6.md to fix NameError in example code
This commit is contained in:
@@ -25,7 +25,7 @@ import stock
|
|||||||
|
|
||||||
class TestStock(unittest.TestCase):
|
class TestStock(unittest.TestCase):
|
||||||
def test_create(self):
|
def test_create(self):
|
||||||
s = Stock('GOOG', 100, 490.1)
|
s = stock.Stock('GOOG', 100, 490.1)
|
||||||
self.assertEqual(s.name, 'GOOG')
|
self.assertEqual(s.name, 'GOOG')
|
||||||
self.assertEqual(s.shares, 100)
|
self.assertEqual(s.shares, 100)
|
||||||
self.assertEqual(s.price, 490.1)
|
self.assertEqual(s.price, 490.1)
|
||||||
|
|||||||
Reference in New Issue
Block a user