summaryrefslogtreecommitdiff
path: root/nova/tests/unit/objects/test_instance_group.py
diff options
context:
space:
mode:
authorDan Smith <dansmith@redhat.com>2015-07-15 10:44:33 -0700
committerDan Smith <dansmith@redhat.com>2015-07-28 10:34:59 -0700
commitb15e10555a11bfbc5e3e17124577e7a5d1369513 (patch)
tree8d07a93de975b4ade981754a0d9f6ad61c224c42 /nova/tests/unit/objects/test_instance_group.py
parent7503b25538f04ebde126679648368c41ad8078bf (diff)
downloadnova-b15e10555a11bfbc5e3e17124577e7a5d1369513.tar.gz
Move to using ovo's remotable decorators
This removes Nova's remotable and remotable_classmethod decorators and aliases the old location to the oslo.versionedobjects (ovo) implementations. This uncovered a couple other places where we were still passing a context to a remotable method (in tests), which are fixed up here. There is also a bug in ovo's remotable decorator that requires dict compatibility. For this reason, this patch adds the Dict mixin to a few objects (with appropriate comments), which can be removed when we have an ovo release with that fix in it. Related to blueprint use-oslo-objects Change-Id: Id51fa3a55f65c8c075423f50a1240c997f9f2388
Diffstat (limited to 'nova/tests/unit/objects/test_instance_group.py')
-rw-r--r--nova/tests/unit/objects/test_instance_group.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/unit/objects/test_instance_group.py b/nova/tests/unit/objects/test_instance_group.py
index cb66f99ba5..16a8076007 100644
--- a/nova/tests/unit/objects/test_instance_group.py
+++ b/nova/tests/unit/objects/test_instance_group.py
@@ -159,8 +159,7 @@ class _TestInstanceGroupObjects(object):
def test_recreate_fails(self):
group = instance_group.InstanceGroup(context=self.context)
group.create()
- self.assertRaises(exception.ObjectActionError, group.create,
- self.context)
+ self.assertRaises(exception.ObjectActionError, group.create)
def test_destroy(self):
values = self._get_default_values()