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

Method test_shares_check

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

Source from the content-addressed store, hash-verified

20 self.assertEqual(s.shares, 75)
21
22 def test_shares_check(self):
23 s = stock.Stock('GOOG', 100, 490.1)
24 with self.assertRaises(TypeError):
25 s.shares = '100'
26
27if __name__ == '__main__':
28 unittest.main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected