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

Method test_cost

Solutions/8_2/test_stock.py:13–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 self.assertEqual(s.price, 490.1)
12
13 def test_cost(self):
14 s = stock.Stock('GOOG', 100, 490.1)
15 self.assertEqual(s.cost, 49010.0)
16
17 def test_sell(self):
18 s = stock.Stock('GOOG', 100, 490.1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected