#NEWLINE# def test_filter_users( self ) : #NEWLINE# #INDENT# 'Testing search with filtering for review requests' #NEWLINE# self . create_review_request ( submitter = 'doc' , publish = True ) #NEWLINE# self . reindex ( ) #NEWLINE# response = self . search ( 'doc' , filter_by = 'users' ) #NEWLINE# context = response . context #NEWLINE# self . assertEqual ( context [ 'hits_returned' ] , 1 ) #NEWLINE# results = context [ 'page' ] . object_list #NEWLINE# self . assertEqual ( results [ 0 ] . content_type ( ) , 'auth.user' ) #NEWLINE# self . assertEqual ( results [ 0 ] . username , 'doc' )