'Test endpoint not found.
EndpointNotFound will be made when the keystone v3 API is not
found in the service catalog, or if the v2.0 endpoint was
registered as the root endpoint. We treat this the same as 404.'

@mock.patch('keystoneauth1.session.Session.get')
def test_wrong_version(self, get):

    get.side_effect = kse.EndpointNotFound()
    self.assertRaises(webob.exc.HTTPBadRequest, identity.verify_project_id, mock.MagicMock(), 'foo')
