#NEWLINE# def test_trivial( self ) : #NEWLINE# #INDENT# log = [ ] #NEWLINE# result = LoggingResult ( log ) #NEWLINE# class Sample ( TestCase ) : #NEWLINE# #INDENT# def __hash__( self ) : #NEWLINE# #INDENT# return id ( self ) #NEWLINE# #UNINDENT# def test_method1( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def test_method2( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# test1 = Sample ( 'test_method1' ) #NEWLINE# test2 = Sample ( 'test_method2' ) #NEWLINE# original_suite = unittest . TestSuite ( [ test1 , test2 ] ) #NEWLINE# suite = ConcurrentTestSuite ( test2 , self . split_suite ) #NEWLINE# suite . run ( result ) #NEWLINE# test1 = log [ 1 ] [ 1 ] #NEWLINE# test2 = log [ ( - 1 ) ] [ 1 ] #NEWLINE# self . assertIsInstance ( test1 , Sample ) #NEWLINE# self . assertIsInstance ( test2 , Sample ) #NEWLINE# self . assertNotEqual ( test1 . id ( ) , test2 . id ( ) )