summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-01 19:37:39 +0000
committerGerrit Code Review <review@openstack.org>2012-08-01 19:37:39 +0000
commite8941bf3b42ed9c177ed05f394664c2e99bf983d (patch)
tree4b97346043d71a828e7e67603692f25b26dd3dda
parent3fa62e342ca9aef0d30c6455ae4096cc0de3fedd (diff)
parent989b1e988b36e97c2e1a49735d532b88fad9e8d0 (diff)
Merge "Fix typo in db test."
-rw-r--r--nova/tests/test_db_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_db_api.py b/nova/tests/test_db_api.py
index 045f63e73..f2500667d 100644
--- a/nova/tests/test_db_api.py
+++ b/nova/tests/test_db_api.py
@@ -43,8 +43,8 @@ class DbApiTestCase(test.TestCase):
args = {'reservation_id': 'a', 'image_ref': 1, 'host': 'host1'}
db.instance_create(self.context, args)
db.instance_create(self.context, args)
- result = db.instance_get_all_by_filters(self.context, {})
- self.assertTrue(2, len(result))
+ result = db.instance_get_all_by_filters(self.context.elevated(), {})
+ self.assertEqual(2, len(result))
def test_instance_get_all_by_filters_unicode_value(self):
args = {'reservation_id': 'a', 'image_ref': 1, 'host': 'host1',