#NEWLINE# def _get_tests( self , path ) : #NEWLINE# #INDENT# if ( not os . path . exists ( path ) ) : #NEWLINE# #INDENT# msg = ( INVALID_PATH % { #NEWLINE# #INDENT# 'path' : path , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . logger . warning ( msg ) #NEWLINE# return #NEWLINE# #UNINDENT# if os . path . isdir ( path ) : #NEWLINE# #INDENT# for test_path in os . listdir ( path ) : #NEWLINE# #INDENT# test_path = ( path + ( test_path if ( path [ ( - 1 ) : ] == '/' ) else ( '/%s' % test_path ) ) ) #NEWLINE# self . _get_tests ( test_path ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if os . path . isfile ( path ) : #NEWLINE# #INDENT# ( dummy , ext ) = os . path . splitext ( path ) #NEWLINE# if ( ext == '.json' ) : #NEWLINE# #INDENT# test = TestFile ( path , self . logger ) #NEWLINE# self [ ext . description ] = test