(self)
| 23 | class 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 | |
| 32 | if __name__ == '__main__': |