'Test Connect Failure handled correctly.
If we get a connect failure, this is transient, and we expect
that this will end up working correctly later.'

@mock.patch('keystoneauth1.session.Session.request')
def test_connect_fail(self, req):

    req.side_effect = ks_exc.ConnectFailure()
    self.client._get_resource_provider('fake')
    req.reset_mock()
    self.client._get_resource_provider('fake')
    self.assertTrue(req.called)
