#NEWLINE# def test_user_cannot_access_service_allowed_for_project_he_has_no_role_in( self ) : #NEWLINE# #INDENT# self . client . force_authenticate ( user = self . users [ 'no_role' ] ) #NEWLINE# for service_type in ( 'admined' , 'managed' ) : #NEWLINE# #INDENT# response = self . client . get ( factories . OpenStackServiceFactory . get_url ( response . services [ service_type ] ) ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_404_NOT_FOUND , ( ( 'User (role=none) should not see service (type=' + service_type ) + ')' ) )