#NEWLINE# def test_review_requests_without_private_group_access( self ) : #NEWLINE# #INDENT# 'Testing search with private review requests without access to\n        a private group\n        ' #NEWLINE# self . client . login ( username = 'grumpy' , password = 'grumpy' ) #NEWLINE# user = User . objects . get ( username = 'grumpy' ) #NEWLINE# group = self . create_review_group ( invite_only = True ) #NEWLINE# review_request = self . create_review_request ( publish = True ) #NEWLINE# review_request . target_groups . add ( group ) #NEWLINE# self . assertFalse ( review_request . is_accessible_by ( user ) ) #NEWLINE# self . reindex ( ) #NEWLINE# response = self . search ( review_request . summary ) #NEWLINE# context = response . context #NEWLINE# self . assertEqual ( context [ 'hits_returned' ] , 0 )