Skip to content

Commit

Permalink
Merge "Change a fake classes variable to something other than id."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 8, 2012
2 parents 5052268 + 68f5b9e commit d0cc16a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nova/tests/api/openstack/fakes.py
Expand Up @@ -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)

Expand Down

0 comments on commit d0cc16a

Please sign in to comment.