#NEWLINE# def test_differentInstances( self ) : #NEWLINE# #INDENT# '\n        L{TestLoader.loadClass} returns a suite with each test method\n        represented by a different instances of the L{TestCase} they are\n        defined on.\n        ' #NEWLINE# class DistinctInstances ( unittest . TestCase ) : #NEWLINE# #INDENT# def test_1( self ) : #NEWLINE# #INDENT# self . first = 'test1Run' #NEWLINE# #UNINDENT# def test_2( self ) : #NEWLINE# #INDENT# self . assertFalse ( hasattr ( self , 'first' ) ) #NEWLINE# #UNINDENT# #UNINDENT# suite = self . loader . loadClass ( DistinctInstances ) #NEWLINE# result = reporter . Reporter ( ) #NEWLINE# suite . run ( result ) #NEWLINE# self . assertTrue ( result . wasSuccessful ( ) )