#NEWLINE# def test_app_filter( self ) : #NEWLINE# #INDENT# task = self . create_task ( app = self . app , user = self . user ) #NEWLINE# deploy = self . create_deploy ( app = self . app , task = task ) #NEWLINE# resp = self . client . get ( ( ( self . path + '?app=' ) + self . app . name ) ) #NEWLINE# assert ( resp . status_code == 200 ) #NEWLINE# data = json . loads ( resp . data ) #NEWLINE# assert ( len ( data ) == 1 ) #NEWLINE# assert ( data [ 0 ] [ 'id' ] == str ( deploy . id ) ) #NEWLINE# resp = self . client . get ( ( self . path + '?app=nothing' ) ) #NEWLINE# assert ( resp . status_code == 200 ) #NEWLINE# data = json . loads ( resp . data ) #NEWLINE# assert ( len ( data ) == 0 )