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

Method setUp

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

Source from the content-addressed store, hash-verified

164class ToasterIntegrationTest(TestCase):
165
166 def setUp(self):
167 self.timer = ReusableTimer()
168 self.toaster = Toaster(self.timer)
169 self.toaster.doneness = 0
170
171 def test_wait_finish(self):
172 self.assertFalse(self.toaster.hot)

Callers

nothing calls this directly

Calls 2

ReusableTimerClass · 0.85
ToasterClass · 0.85

Tested by

no test coverage detected