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

Method setUp

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

Source from the content-addressed store, hash-verified

194print("Example 7")
195class DonenessUnitTest(TestCase):
196 def setUp(self):
197 self.toaster = Toaster(ReusableTimer())
198
199 def test_min(self):
200 self.toaster.doneness = 0

Callers

nothing calls this directly

Calls 2

ToasterClass · 0.85
ReusableTimerClass · 0.85

Tested by

no test coverage detected