Merge pull request #66 from jarlethorsen/patch-1

Update ex5_6.md to fix NameError in example code
This commit is contained in:
David Beazley 2024-07-31 10:37:12 -05:00 committed by GitHub
commit a8e0892301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ import stock
class TestStock(unittest.TestCase):
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.shares, 100)
self.assertEqual(s.price, 490.1)