#NEWLINE# def test_filter_by_comment( self ) : #NEWLINE# #INDENT# 'Can filter by name.' #NEWLINE# self . factory ( comment = 'foo' , tester__username = 'Tester 1' ) #NEWLINE# self . factory ( comment = 'bar' , tester__username = 'Tester 2' ) #NEWLINE# res = self . get ( params = { #NEWLINE# #INDENT# 'filter-comment' : 'fo' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertInList ( res , 'Tester 1' ) #NEWLINE# self . assertNotInList ( self , 'Tester 2' )