MCPcopy Index your code
hub / github.com/python/cpython / test_more_bool

Method test_more_bool

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

Source from the content-addressed store, hash-verified

4696 self.assertEqual(derived.tzname(), 'cookie')
4697
4698 def test_more_bool(self):
4699 # time is always True.
4700 cls = self.theclass
4701
4702 t = cls(0, tzinfo=FixedOffset(-300, ""))
4703 self.assertTrue(t)
4704
4705 t = cls(5, tzinfo=FixedOffset(-300, ""))
4706 self.assertTrue(t)
4707
4708 t = cls(5, tzinfo=FixedOffset(300, ""))
4709 self.assertTrue(t)
4710
4711 t = cls(23, 59, tzinfo=FixedOffset(23*60 + 59, ""))
4712 self.assertTrue(t)
4713
4714 def test_replace(self):
4715 cls = self.theclass

Callers

nothing calls this directly

Calls 3

FixedOffsetClass · 0.85
assertTrueMethod · 0.80
clsClass · 0.50

Tested by

no test coverage detected