MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_more_bool

Method test_more_bool

Lib/test/datetimetester.py:4516–4530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4514 self.assertEqual(derived.tzname(), 'cookie')
4515
4516 def test_more_bool(self):
4517 # time is always True.
4518 cls = self.theclass
4519
4520 t = cls(0, tzinfo=FixedOffset(-300, ""))
4521 self.assertTrue(t)
4522
4523 t = cls(5, tzinfo=FixedOffset(-300, ""))
4524 self.assertTrue(t)
4525
4526 t = cls(5, tzinfo=FixedOffset(300, ""))
4527 self.assertTrue(t)
4528
4529 t = cls(23, 59, tzinfo=FixedOffset(23*60 + 59, ""))
4530 self.assertTrue(t)
4531
4532 def test_replace(self):
4533 cls = self.theclass

Callers

nothing calls this directly

Calls 3

assertTrueMethod · 0.80
FixedOffsetClass · 0.70
clsClass · 0.50

Tested by

no test coverage detected