'Test short-circuiting notifications with default and noop driver.'

@ddt.data([], ['noop'], ['noop', 'noop'])
@mock.patch('oslo_messaging.JsonPayloadSerializer', wraps=True)
def test_init_no_notifications(self, driver, serializer_mock):

    self.override_config('driver', driver, group='oslo_messaging_notifications')
    rpc.init(test.CONF)
    self.assertEqual(rpc.utils.DO_NOTHING, rpc.NOTIFIER)
    serializer_mock.assert_not_called()
