#NEWLINE# def testNestedSingleStatements( self ) : #NEWLINE# #INDENT# mock_a = mock_contextmanager_generator ( ) #NEWLINE# with mock_a as foo : #NEWLINE# #INDENT# mock_b = mock_contextmanager_generator ( ) #NEWLINE# with mock_b as bar : #NEWLINE# #INDENT# self . assertInWithManagerInvariants ( mock_b ) #NEWLINE# self . assertInWithManagerInvariants ( mock_b ) #NEWLINE# self . assertInWithGeneratorInvariants ( foo ) #NEWLINE# self . assertInWithGeneratorInvariants ( bar ) #NEWLINE# #UNINDENT# self . assertAfterWithManagerInvariantsNoError ( mock_b ) #NEWLINE# self . assertAfterWithGeneratorInvariantsNoError ( bar ) #NEWLINE# self . assertInWithManagerInvariants ( mock_a ) #NEWLINE# self . assertInWithGeneratorInvariants ( foo ) #NEWLINE# #UNINDENT# self . assertAfterWithManagerInvariantsNoError ( mock_a ) #NEWLINE# self . assertAfterWithGeneratorInvariantsNoError ( foo )