Skip to content

Commit

Permalink
Fix the nova notifier tests after a nova rename
Browse files Browse the repository at this point in the history
openstack/nova@3222d8b

fixes bug 1178055

Change-Id: I49f530a73c70a3efbec000e5de493b0d82ad3435
  • Loading branch information
asalkeld committed May 9, 2013
1 parent 574fd69 commit a60fc5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nova_tests/test_notifier.py
Expand Up @@ -32,7 +32,11 @@
## works. Please don't change them.
from nova.tests import fake_network
from nova.compute import vm_states
from nova.compute import instance_types
try:
from nova.compute import flavors
except ImportError:
from nova.compute import instance_types as flavors

from nova import config
from nova import context
from nova import db
Expand Down Expand Up @@ -128,7 +132,7 @@ def setUp(self):
self.stubs.Set(db, 'instance_update_and_get_original',
lambda context, uuid, kwargs: (self.instance,
self.instance))
self.stubs.Set(instance_types, 'extract_instance_type',
self.stubs.Set(flavors, 'extract_instance_type',
lambda ref: {})

# Set up to capture the notification messages generated by the
Expand Down

0 comments on commit a60fc5b

Please sign in to comment.