Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_inspect.IsTestBase Class Reference
Inheritance diagram for test.test_inspect.IsTestBase:
Inheritance graph

List of all members.

Public Member Functions

def istest

Static Public Attributes

tuple predicates

Detailed Description

Definition at line 51 of file

Member Function Documentation

def test.test_inspect.IsTestBase.istest (   self,

Definition at line 57 of file

00058     def istest(self, predicate, exp):
00059         obj = eval(exp)
00060         self.assertTrue(predicate(obj), '%s(%s)' % (predicate.__name__, exp))
00062         for other in self.predicates - set([predicate]):
00063             if predicate == inspect.isgeneratorfunction and\
00064                other == inspect.isfunction:
00065                 continue
00066             self.assertFalse(other(obj), 'not %s(%s)' % (other.__name__, exp))

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Initial value:
set([inspect.isbuiltin, inspect.isclass, inspect.iscode,
                      inspect.isframe, inspect.isfunction, inspect.ismethod,
                      inspect.ismodule, inspect.istraceback,
                      inspect.isgenerator, inspect.isgeneratorfunction])

Definition at line 52 of file

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