Codebase list cinder-tempest-plugin / a3b2272
Dropping explicit unicode literal In python 3, all strings are considered as unicode string. This patch drops the explicit unicode literal (u'...') or (u"..") appearances from the unicode strings. Change-Id: Ied40f6e4fefc66f847fed7e934d53ccb64be8dd4 tushargite96 authored 4 years ago Tushar Trambak Gite committed 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7171 @decorators.idempotent_id('332be44d-5418-4fb3-a8f0-a3587de6929f')
7272 def test_snapshot_create_volume_description_non_ascii_code(self):
7373 # Create a volume with non-ascii description
74 description = u'\u05e7\u05d9\u05d9\u05e4\u05e9'
74 description = '\u05e7\u05d9\u05d9\u05e4\u05e9'
7575 volume = self.create_volume(description=description)
7676 vol_info = self.volumes_client.show_volume(volume['id'])['volume']
7777 self.assertEqual(description, vol_info['description'])
7878
7979 # Create a snapshot with different non-ascii description
80 description = u'\u4e2d\u56fd\u793e\u533a'
80 description = '\u4e2d\u56fd\u793e\u533a'
8181 snapshot = self.create_snapshot(volume['id'], description=description)
8282 snapshot_info = self.snapshots_client.show_snapshot(
8383 snapshot['id'])['snapshot']