From b33ae7f6570cda5863554523d8fd84eeafc97b0e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 18 Sep 2017 16:00:15 -0400 Subject: [PATCH] use unicode in tests to avoid SQLA warning This suppresses a warning from SQLA which is only popping up in the tests. Something we can and should avoid. Change-Id: I3d1cf3a5dd817e0896809145fcb8fdd25a3a5d78 --- nova/tests/unit/test_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/tests/unit/test_notifications.py b/nova/tests/unit/test_notifications.py index 9135d1f036..483ed86578 100644 --- a/nova/tests/unit/test_notifications.py +++ b/nova/tests/unit/test_notifications.py @@ -549,11 +549,11 @@ class NotificationsTestCase(test.TestCase): def test_send_versioned_tags_update(self): objects.TagList.create(self.context, - self.instance.uuid, ['tag1', 'tag2']) + self.instance.uuid, [u'tag1', u'tag2']) notifications.send_update(self.context, self.instance, self.instance) self.assertEqual(1, len(fake_notifier.VERSIONED_NOTIFICATIONS)) - self.assertEqual(['tag1', 'tag2'], + self.assertEqual([u'tag1', u'tag2'], fake_notifier.VERSIONED_NOTIFICATIONS[0] ['payload']['nova_object.data']['tags'])