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

Method test_max

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

Source from the content-addressed store, hash-verified

201 self.assertEqual(0.1, self.toaster._get_duration())
202
203 def test_max(self):
204 self.toaster.doneness = 1000
205 self.assertEqual(120, self.toaster._get_duration())
206
207import unittest
208

Callers

nothing calls this directly

Calls 1

_get_durationMethod · 0.80

Tested by

no test coverage detected