#NEWLINE# def test_teardown_module( self ) : #NEWLINE# #INDENT# class Module ( object ) : #NEWLINE# #INDENT# moduleTornDown = 0 #NEWLINE# @ staticmethod #NEWLINE# def tearDownModule( ) : #NEWLINE# #INDENT# Module . moduleTornDown += 1 #NEWLINE# #UNINDENT# #UNINDENT# class Test ( unittest . TestCase ) : #NEWLINE# #INDENT# def test_one( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def test_two( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# Test . __module__ = 'Module' #NEWLINE# sys . modules [ 'Module' ] = Module #NEWLINE# result = self . runTests ( Test ) #NEWLINE# self . assertEqual ( Module . moduleTornDown , 1 ) #NEWLINE# self . assertEqual ( result . testsRun , 2 ) #NEWLINE# self . assertEqual ( len ( result . errors ) , 0 )