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

Method assertHaskey

Lib/test/test_pyclbr.py:61–66  ·  view source on GitHub ↗

succeed iff key in obj or key in ignore.

(self, obj, key, ignore)

Source from the content-addressed store, hash-verified

59 self.fail("%r missing" % missing.pop())
60
61 def assertHaskey(self, obj, key, ignore):
62 ''' succeed iff key in obj or key in ignore. '''
63 if key in ignore: return
64 if key not in obj:
65 print("***",key, file=sys.stderr)
66 self.assertIn(key, obj)
67
68 def assertEqualsOrIgnored(self, a, b, ignore):
69 ''' succeed iff a == b or a in ignore or b in ignore '''

Callers 1

checkModuleMethod · 0.95

Calls 2

assertInMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected