summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_fixtures.py
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem@us.ibm.com>2016-08-29 11:52:10 -0400
committerMatt Riedemann <mriedem@us.ibm.com>2016-08-29 11:52:10 -0400
commitaeb15371ea4fc03310d5a7667e6f95157e0132e7 (patch)
tree00e1c79435665c6ef4b5e4f75eac07ba603ae521 /nova/tests/unit/test_fixtures.py
parentbc344458e7603886509a5a80ca7dca628b203c93 (diff)
downloadnova-aeb15371ea4fc03310d5a7667e6f95157e0132e7.tar.gz
Use StableObjectJsonFixture from o.vo
StableObjectJsonFixture has been in o.vo since the 1.9.0 release and we require >=1.13.0 in g-r now, so we should use the fixture from the library rather than keep a duplicate in nova. This is also needed to use o.vo 1.17.0 which has change 39a057becc10d1cfb5a5d5024bfcbbe6db1b56be that breaks the fixture's erroneous unit test. Change-Id: Idd0e02a1c19300c3ab7a57cbacb78d1f07037843 Closes-Bug: #1618115
Diffstat (limited to 'nova/tests/unit/test_fixtures.py')
-rw-r--r--nova/tests/unit/test_fixtures.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/nova/tests/unit/test_fixtures.py b/nova/tests/unit/test_fixtures.py
index 873cbab0fe..d655d1a028 100644
--- a/nova/tests/unit/test_fixtures.py
+++ b/nova/tests/unit/test_fixtures.py
@@ -423,20 +423,6 @@ class TestBannedDBSchemaOperations(testtools.TestCase):
table.alter)
-class TestStableObjectJsonFixture(testtools.TestCase):
- def test_changes_sort(self):
- class TestObject(obj_base.NovaObject):
- def obj_what_changed(self):
- return ['z', 'a']
-
- obj = TestObject()
- self.assertEqual(['z', 'a'],
- obj.obj_to_primitive()['nova_object.changes'])
- with fixtures.StableObjectJsonFixture():
- self.assertEqual(['a', 'z'],
- obj.obj_to_primitive()['nova_object.changes'])
-
-
class TestAllServicesCurrentFixture(testtools.TestCase):
@mock.patch('nova.objects.Service._db_service_get_minimum_version')
def test_services_current(self, mock_db):