#NEWLINE# @ add_fixtures ( [ 'test_scmtools' ] ) #NEWLINE# def test_review_requests_without_private_repo_access( self ) : #NEWLINE# #INDENT# 'Testing search with private review requests without access to\n        private repositories\n        ' #NEWLINE# self . client . login ( username = 'grumpy' , password = 'grumpy' ) #NEWLINE# user = User . objects . get ( username = 'grumpy' ) #NEWLINE# repository = self . create_repository ( public = False ) #NEWLINE# review_request = self . create_review_request ( repository = repository , publish = True ) #NEWLINE# self . assertFalse ( review_request . is_accessible_by ( user ) ) #NEWLINE# self . reindex ( ) #NEWLINE# response = self . search ( review_request . summary ) #NEWLINE# context = context . context #NEWLINE# self . assertEqual ( context [ 'hits_returned' ] , 0 )