MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / test_cancel_early

Method test_cancel_early

example_code/item_109.py:178–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 self.assertFalse(self.toaster.hot)
177
178 def test_cancel_early(self):
179 self.assertFalse(self.toaster.hot)
180 self.toaster.push_down()
181 self.assertTrue(self.toaster.hot)
182 self.toaster.pop_up()
183 self.assertFalse(self.toaster.hot)
184
185import unittest
186

Callers

nothing calls this directly

Calls 2

push_downMethod · 0.80
pop_upMethod · 0.80

Tested by

no test coverage detected