'Tests the case that notifications are disabled which makes
send_instance_update_notification a noop.'

@mock.patch.object(base, 'info_from_instance', new_callable=mock.NonCallableMock)
@mock.patch('nova.rpc.NOTIFIER.is_enabled', return_value=False)
def test_send_instance_update_notification_disabled(self, mock_enabled, mock_info):

    base.send_instance_update_notification(mock.sentinel.ctxt, mock.sentinel.instance)
