summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuriy Taraday <yorik.sar@gmail.com>2011-06-03 13:39:22 +0400
committerYuriy Taraday <yorik.sar@gmail.com>2011-06-03 13:39:22 +0400
commit72a47784dc09d9b840db146d58ea71f6af30a8ea (patch)
tree4c92e8a08f72850c86afb1ff4cd91d6bd6c19b18
parent9ee103a91fe3bed03c3f4c6c1a6e89fa474e1aae (diff)
downloadnova-72a47784dc09d9b840db146d58ea71f6af30a8ea.tar.gz
nova-72a47784dc09d9b840db146d58ea71f6af30a8ea.tar.xz
nova-72a47784dc09d9b840db146d58ea71f6af30a8ea.zip
Flush AuthManager's cache before each test.
-rw-r--r--nova/tests/test_auth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/tests/test_auth.py b/nova/tests/test_auth.py
index f02dd94b7..7d00bddfe 100644
--- a/nova/tests/test_auth.py
+++ b/nova/tests/test_auth.py
@@ -86,6 +86,7 @@ class _AuthManagerBaseTestCase(test.TestCase):
super(_AuthManagerBaseTestCase, self).setUp()
self.flags(connection_type='fake')
self.manager = manager.AuthManager(new=True)
+ self.manager.mc.cache = {}
def test_create_and_find_user(self):
with user_generator(self.manager):