Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
194
print(
"Example 7"
)
195
class
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
Toaster
Class · 0.85
ReusableTimer
Class · 0.85
Tested by
no test coverage detected