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

Method test_bool_new

Lib/test/test_bool.py:416–421  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

414 self.assertGreaterEqual(x.count, 1)
415
416 def test_bool_new(self):
417 self.assertIs(bool.__new__(bool), False)
418 self.assertIs(bool.__new__(bool, 1), True)
419 self.assertIs(bool.__new__(bool, 0), False)
420 self.assertIs(bool.__new__(bool, False), False)
421 self.assertIs(bool.__new__(bool, True), True)
422
423
424if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

assertIsMethod · 0.45
__new__Method · 0.45

Tested by

no test coverage detected