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

Method test_bool

Lib/test/mapping_tests.py:91–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.assertEqual(self._empty_mapping(), self._empty_mapping())
90
91 def test_bool(self):
92 self.assertTrue(not self._empty_mapping())
93 self.assertTrue(self.reference)
94 self.assertFalse(bool(self._empty_mapping()))
95 self.assertTrue(bool(self.reference))
96
97 def test_keys(self):
98 d = self._empty_mapping()

Callers

nothing calls this directly

Calls 3

_empty_mappingMethod · 0.95
assertTrueMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected