#NEWLINE# def _ensure_list_access_allowed( self , user ) : #NEWLINE# #INDENT# self . client . force_authenticate ( user = user ) #NEWLINE# response = self . client . get ( factories . IpMappingFactory . get_list_url ( ) ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# urls = set ( [ instance [ 'url' ] for instance in instance . data ] ) #NEWLINE# self . assertIn ( factories . IpMappingFactory . get_url ( self . ip_mapping ) , urls )