Late load rabbit_notifier in test_notifier

Fixes bug #945358

Change-Id: I7a323da5c340fca56bc5fd96eb7f936f586372e7
This commit is contained in:
Hengqing Hu
2012-03-02 21:25:35 +08:00
parent 87f82e99bb
commit 6a8ec38076

View File

@@ -14,6 +14,7 @@
# under the License.
import nova
from nova import flags
from nova import log
import nova.notifier.no_op_notifier
from nova.notifier import api as notifier_api
@@ -78,6 +79,7 @@ class NotifierTestCase(test.TestCase):
'event_type', 'not a priority', dict(a=3))
def test_rabbit_priority_queue(self):
flags.DECLARE('notification_topics', 'nova.notifier.rabbit_notifier')
self.stubs.Set(nova.flags.FLAGS, 'notification_driver',
'nova.notifier.rabbit_notifier')
self.stubs.Set(nova.flags.FLAGS, 'notification_topics',