#NEWLINE# def test_clients_neutron_noauth( self ) : #NEWLINE# #INDENT# con = mock . MagicMock ( ) #NEWLINE# con . auth_token = None #NEWLINE# con . auth_token_info = None #NEWLINE# con . tenant = 'b363706f891f48019483f8bd6503c54b' #NEWLINE# auth_url = mock . PropertyMock ( name = 'auth_url' , return_value = 'keystone_url' ) #NEWLINE# type ( con ) . auth_url = auth_url #NEWLINE# con . get_url_for = mock . Mock ( name = 'get_url_for' ) #NEWLINE# con . get_url_for . return_value = 'url_from_keystone' #NEWLINE# obj = clients . OpenStackClients ( con ) #NEWLINE# obj . _neutron = None #NEWLINE# self . assertRaises ( exception . AuthorizationFailure , con . neutron )