def setUp(self): """Run before each test.""" super(UsedLimitsTestCase, self).setUp() self.controller = used_limits.UsedLimitsController() self.fake_context = nova.context.RequestContext('fake', 'fake') self.mox.StubOutWithMock(used_limits, 'authorize') self.authorize = used_limits.authorize
def _set_up_controller(self): self.ext_mgr = None self.controller = used_limits_v21.UsedLimitsController() self.mox.StubOutWithMock(used_limits_v21, 'authorize') self.authorize = used_limits_v21.authorize