Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge "Change a fake classes variable to something other than id."

  • Loading branch information...
commit d0cc16a11a306c32c99a1b5f2a38985191d40454 2 parents 5052268 + 68f5b9e
Jenkins authored openstack-gerrit committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 nova/tests/api/openstack/fakes.py
View
7 nova/tests/api/openstack/fakes.py
@@ -275,15 +275,14 @@ def fake_get_image_service():
class FakeToken(object):
- # FIXME(sirp): let's not use id here
- id = 0
+ id_count = 0
def __getitem__(self, key):
return getattr(self, key)
def __init__(self, **kwargs):
- FakeToken.id += 1
- self.id = FakeToken.id
+ FakeToken.id_count += 1
+ self.id = FakeToken.id_count
for k, v in kwargs.iteritems():
setattr(self, k, v)
Please sign in to comment.
Something went wrong with that request. Please try again.