#NEWLINE# def test_user_can_list_services_of_projects_he_is_administrator_of( self ) : #NEWLINE# #INDENT# self . client . force_authenticate ( user = instance . users [ 'project_admin' ] ) #NEWLINE# response = self . client . get ( factories . OpenStackServiceFactory . get_list_url ( ) ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# service_url = factories . OpenStackServiceFactory . get_url ( self . services [ 'admined' ] ) #NEWLINE# self . assertIn ( service_url , [ instance [ 'url' ] for instance in response . data ] )