From 03962c39bf4ecbe424d3960f7fbbd19c37911757 Mon Sep 17 00:00:00 2001 From: Michael Gundlach Date: Wed, 13 Oct 2010 21:55:01 -0400 Subject: Address cerberus's comment --- nova/tests/api/openstack/fakes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nova/tests/api/openstack/fakes.py b/nova/tests/api/openstack/fakes.py index 6fca19364..71da2fd21 100644 --- a/nova/tests/api/openstack/fakes.py +++ b/nova/tests/api/openstack/fakes.py @@ -175,9 +175,9 @@ class FakeAuthDatabase(object): @staticmethod def auth_create_token(context, token): - fakeToken = FakeToken(created_at=datetime.datetime.now(), **token) - FakeAuthDatabase.data[fakeToken.token_hash] = fakeToken - return fakeToken + fake_token = FakeToken(created_at=datetime.datetime.now(), **token) + FakeAuthDatabase.data[fake_token.token_hash] = fake_token + return fake_token @staticmethod def auth_destroy_token(context, token): -- cgit