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

Method test_min

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

Source from the content-addressed store, hash-verified

197 self.toaster = Toaster(ReusableTimer())
198
199 def test_min(self):
200 self.toaster.doneness = 0
201 self.assertEqual(0.1, self.toaster._get_duration())
202
203 def test_max(self):
204 self.toaster.doneness = 1000

Callers

nothing calls this directly

Calls 1

_get_durationMethod · 0.80

Tested by

no test coverage detected