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

Method test_attributes_in_errorcode

Lib/test/test_errno.py:25–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23class ErrorcodeTests(unittest.TestCase):
24
25 def test_attributes_in_errorcode(self):
26 for attribute in errno.__dict__.keys():
27 if attribute.isupper():
28 self.assertIn(getattr(errno, attribute), errno.errorcode,
29 'no %s attr in errno.errorcode' % attribute)
30
31
32if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

isupperMethod · 0.80
assertInMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected