#NEWLINE# def test_search_against_owner( self ) : #NEWLINE# #INDENT# url = reverse ( 'admin:filer-directory_listing' , kwargs = { #NEWLINE# #INDENT# 'folder_id' : url . parent . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . get ( url , { #NEWLINE# #INDENT# 'q' : 'joe' , #NEWLINE# #UNINDENT# } ) #NEWLINE# item_list = response . context [ 'paginated_items' ] . object_list #NEWLINE# self . assertEqual ( len ( item_list ) , 1 ) #NEWLINE# response = self . client . get ( url , { #NEWLINE# #INDENT# 'q' : 'admin' , #NEWLINE# #UNINDENT# } ) #NEWLINE# item_list = response . context [ 'paginated_items' ] . object_list #NEWLINE# self . assertEqual ( len ( item_list ) , 4 )