'Test DiscoveryFailure behavior.
Failed discovery should not blow up.'

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

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