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

Method test_bool

Lib/test/test_collections.py:168–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 self.assertEqual(ChainMap({1:2}).maps, [{1:2}]) # 1 arg --> list
167
168 def test_bool(self):
169 self.assertFalse(ChainMap())
170 self.assertFalse(ChainMap({}, {}))
171 self.assertTrue(ChainMap({1:2}, {}))
172 self.assertTrue(ChainMap({}, {1:2}))
173
174 def test_missing(self):
175 class DefaultChainMap(ChainMap):

Callers

nothing calls this directly

Calls 3

ChainMapClass · 0.90
assertFalseMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected