Merge "Fix test case in test_volume_unicode.py"

This commit is contained in:
Zuul 2017-12-12 00:56:58 +00:00 committed by Gerrit Code Review
commit 55b2f34951
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@ class CinderUnicodeTest(volume_base.BaseVolumeTest):
volume = self.create_volume(description=description)
vol_info = self.volumes_client.show_volume(volume['id'])['volume']
self.assertEqual(description, vol_info['description'])
snapshot = self.create_snapshot(volume['id'])
# Create a snapshot with different non-ascii description
description = u'\u4e2d\u56fd\u793e\u533a'
snapshot = self.create_snapshot(volume['id'], description=description)
snapshot_info = self.snapshots_client.show_snapshot(
snapshot['id'])['snapshot']
self.assertEqual(description, snapshot_info['description'])