#NEWLINE# @ patch . object ( acl , 'check_addons_reviewer' , ( lambda x : False ) ) #NEWLINE# @ patch . object ( acl , 'check_unlisted_addons_reviewer' , ( lambda x : False ) ) #NEWLINE# @ patch . object ( acl , 'check_addon_ownership' , ( lambda * args , **kwargs : False ) ) #NEWLINE# def test_unlisted_viewer_unallowed( self ) : #NEWLINE# #INDENT# ( addon , file_ ) = self . get_unlisted_addon_file ( ) #NEWLINE# with pytest . raises ( http . Http404 ) : #NEWLINE# #INDENT# allowed ( addon . request , file_ )