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

Method test_wait_finish

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

Source from the content-addressed store, hash-verified

169 self.toaster.doneness = 0
170
171 def test_wait_finish(self):
172 self.assertFalse(self.toaster.hot)
173 self.toaster.push_down()
174 self.assertTrue(self.toaster.hot)
175 self.timer.timer.join()
176 self.assertFalse(self.toaster.hot)
177
178 def test_cancel_early(self):
179 self.assertFalse(self.toaster.hot)

Callers

nothing calls this directly

Calls 1

push_downMethod · 0.80

Tested by

no test coverage detected