Home | History | Annotate | Download | only in test

Lines Matching refs:Nested

56 class Nested(object):
77 # Behave like nested with statements
92 class MockNested(Nested):
94 Nested.__init__(self, *managers)
101 return Nested.__enter__(self)
106 return Nested.__exit__(self, *exc_info)
289 with Nested(mock_contextmanager_generator()):
294 # This will bind all the arguments to nested() into a single list
296 with Nested(m) as foo:
302 # This will bind all the arguments to nested() into a single list
304 with Nested(m) as (foo):
310 with Nested(mock_contextmanager_generator()) as (foo, bar):