'Tests Exception and Log error if no endpoint is provided'

def test_invoke_service_no_endpoint_error(self):

    self.webclient._endpoint = None
    log_error = 'Unexpected    error    while    invoking    web    service'
    self.assertRaises(exception.NetAppDriverException, self.webclient.invoke_service)
    self.assertTrue(self.mock_log.exception.find(log_error))
