#NEWLINE# def test_sortTestMethodsUsing__default_value( self ) : #NEWLINE# #INDENT# loader = unittest . TestLoader ( ) #NEWLINE# class Foo ( unittest . TestCase ) : #NEWLINE# #INDENT# def test_2( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def test_3( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def test_1( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# test_names = [ 'test_2' , 'test_3' , 'test_1' ] #NEWLINE# self . assertEqual ( loader . getTestCaseNames ( Foo ) , sorted ( loader ) )