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
| 71 | 71 | @decorators.idempotent_id('332be44d-5418-4fb3-a8f0-a3587de6929f') |
| 72 | 72 | def test_snapshot_create_volume_description_non_ascii_code(self): |
| 73 | 73 | # Create a volume with non-ascii description |
| 74 | description = u'\u05e7\u05d9\u05d9\u05e4\u05e9' | |
| 74 | description = '\u05e7\u05d9\u05d9\u05e4\u05e9' | |
| 75 | 75 | volume = self.create_volume(description=description) |
| 76 | 76 | vol_info = self.volumes_client.show_volume(volume['id'])['volume'] |
| 77 | 77 | self.assertEqual(description, vol_info['description']) |
| 78 | 78 | |
| 79 | 79 | # Create a snapshot with different non-ascii description |
| 80 | description = u'\u4e2d\u56fd\u793e\u533a' | |
| 80 | description = '\u4e2d\u56fd\u793e\u533a' | |
| 81 | 81 | snapshot = self.create_snapshot(volume['id'], description=description) |
| 82 | 82 | snapshot_info = self.snapshots_client.show_snapshot( |
| 83 | 83 | snapshot['id'])['snapshot'] |