Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_with Namespace Reference

Classes

class  MockContextManager
class  MockResource
class  Nested
class  MockNested
class  FailureTestCase
class  ContextmanagerAssertionMixin
class  NonexceptionalTestCase
class  NestedNonexceptionalTestCase
class  ExceptionalTestCase
class  NonLocalFlowControlTestCase
class  AssignmentTargetTestCase
class  ExitSwallowsExceptionTestCase
class  NestedWith

Functions

def mock_contextmanager
def mock_contextmanager_generator
def test_main

Variables

string __author__ = "Mike Bland"
string __email__ = "mbland at acm dot org"

Function Documentation

Definition at line 34 of file test_with.py.

00034 
00035 def mock_contextmanager(func):
00036     def helper(*args, **kwds):
00037         return MockContextManager(func, *args, **kwds)
00038     return helper
00039 

Here is the call graph for this function:

Definition at line 47 of file test_with.py.

00047 
00048 def mock_contextmanager_generator():
00049     mock = MockResource()
00050     try:
00051         mock.yielded = True
00052         yield mock
00053     finally:
00054         mock.stopped = True
00055 

Here is the caller graph for this function:

Definition at line 742 of file test_with.py.

00742 
00743 def test_main():
00744     run_unittest(FailureTestCase, NonexceptionalTestCase,
00745                  NestedNonexceptionalTestCase, ExceptionalTestCase,
00746                  NonLocalFlowControlTestCase,
00747                  AssignmentTargetTestCase,
00748                  ExitSwallowsExceptionTestCase,
00749                  NestedWith)
00750 

Here is the call graph for this function:


Variable Documentation

Definition at line 6 of file test_with.py.

string test.test_with.__email__ = "mbland at acm dot org"

Definition at line 7 of file test_with.py.