Lines Matching defs:errno
1 """Test the errno module
5 import errno
15 self.assertTrue(hasattr(errno, error_code),
16 "errno is missing %s" % error_code)
19 # Every key value in errno.errorcode should be on the module.
20 for value in errno.errorcode.values():
21 self.assertTrue(hasattr(errno, value),
22 'no %s attr in errno' % value)
28 for attribute in errno.__dict__.keys():
30 self.assertIn(getattr(errno, attribute), errno.errorcode,
31 'no %s attr in errno.errorcode' % attribute)