use a RequestContext object instead of context module

Change-Id: Ib3ef1602838daee8e9453a2ded2fbb4b17d36935
This commit is contained in:
Yun Mao
2012-05-17 16:38:37 -04:00
parent 5245b24b50
commit f6e2435a83

View File

@@ -1661,7 +1661,7 @@ class ComputeTestCase(BaseTestCase):
self.compute._last_host_check = 0
self.mox.ReplayAll()
self.compute._report_driver_status(context)
self.compute._report_driver_status(context.get_admin_context())
caps = self.compute.last_capabilities
all_caps = dict(test1=1024, test2='foo', test3='xyzzy',
test4=True, nothertest='bar')