#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# check_db = re . search ( '_test' , config . MONGO_DATABASE ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# test_db = ( '%s_test' % config . MONGO_DATABASE ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# test_db = config . MONGO_DATABASE #NEWLINE# #UNINDENT# ( self . pitchfork , self . db ) = create_app ( test_db ) #NEWLINE# self . app = self . pitchfork . test_client ( ) #NEWLINE# self . app . get ( '/' )