MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / test_cost

Method test_cost

Solutions/7_3/teststock.py:19–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 self.assertEqual(s.price, 490.1)
18
19 def test_cost(self):
20 s = stock.Stock('GOOG', 100, 490.1)
21 self.assertEqual(s.cost, 49010.0)
22
23 def test_sell(self):
24 s = stock.Stock('GOOG', 100, 490.1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected