Back to index

python3.2  3.2.2
Public Member Functions
test.test_errno.ErrnoAttributeTests Class Reference

List of all members.

Public Member Functions

def test_for_improper_attributes
def test_using_errorcode

Detailed Description

Definition at line 12 of file

Member Function Documentation

Definition at line 14 of file

00015     def test_for_improper_attributes(self):
00016         # No unexpected attributes should be on the module.
00017         for error_code in std_c_errors:
00018             self.assertTrue(hasattr(errno, error_code),
00019                             "errno is missing %s" % error_code)

Here is the call graph for this function:

Definition at line 20 of file

00021     def test_using_errorcode(self):
00022         # Every key value in errno.errorcode should be on the module.
00023         for value in errno.errorcode.values():
00024             self.assertTrue(hasattr(errno, value),
00025                             'no %s attr in errno' % value)

Here is the call graph for this function:

The documentation for this class was generated from the following file: