diff options
Diffstat (limited to 'nova/tests/unit/objects/test_objects.py')
-rw-r--r-- | nova/tests/unit/objects/test_objects.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/tests/unit/objects/test_objects.py b/nova/tests/unit/objects/test_objects.py index b2f4f0616d..2efc19cab5 100644 --- a/nova/tests/unit/objects/test_objects.py +++ b/nova/tests/unit/objects/test_objects.py @@ -34,7 +34,6 @@ from nova.objects import fields from nova.objects import virt_device_metadata from nova import test from nova.tests import fixtures as nova_fixtures -from nova.tests.unit import fake_notifier from nova import utils @@ -211,8 +210,7 @@ class _BaseTestCase(test.TestCase): self.user_id = 'fake-user' self.project_id = 'fake-project' self.context = context.RequestContext(self.user_id, self.project_id) - fake_notifier.stub_notifier(self) - self.addCleanup(fake_notifier.reset) + self.useFixture(nova_fixtures.NotificationFixture(self)) # NOTE(danms): register these here instead of at import time # so that they're not always present |