diff options
| author | tushargite96 <tushargite96@gmail.com> | 2021-02-16 19:55:30 +0530 |
|---|---|---|
| committer | Brian Rosmaita <rosmaita.fossdev@gmail.com> | 2021-03-11 08:32:54 -0500 |
| commit | d9213138b1df8ead680823157848b8f5056b9c63 (patch) | |
| tree | 43dbc171bde2076e892b326131dad46418bd5061 /cinderclient | |
| parent | 7e4219622b172b5ef42ef4e8214c6e8f8f59f2bf (diff) | |
| download | python-cinderclient-d9213138b1df8ead680823157848b8f5056b9c63.tar.gz | |
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: I9902966892a1dc4f85d449dfe580fb128647487b
Diffstat (limited to 'cinderclient')
| -rw-r--r-- | cinderclient/tests/unit/v2/fakes.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cinderclient/tests/unit/v2/fakes.py b/cinderclient/tests/unit/v2/fakes.py index 99a87d0..ddd20c5 100644 --- a/cinderclient/tests/unit/v2/fakes.py +++ b/cinderclient/tests/unit/v2/fakes.py @@ -28,9 +28,9 @@ REQUEST_ID = 'req-test-request-id' def _stub_volume(*args, **kwargs): volume = { "migration_status": None, - "attachments": [{u'server_id': u'1234', - u'id': u'3f88836f-adde-4296-9f6b-2c59a0bcda9a', - u'attachment_id': u'5678'}], + "attachments": [{'server_id': '1234', + 'id': '3f88836f-adde-4296-9f6b-2c59a0bcda9a', + 'attachment_id': '5678'}], "links": [ { "href": "http://localhost/v2/fake/volumes/1234", @@ -741,7 +741,7 @@ class FakeHTTPClient(base_client.HTTPClient): return (200, {}, {'volume_type': {'id': 1, 'name': 'test-type-1', 'description': 'test_type-1-desc', - 'extra_specs': {u'key': u'value'}}}) + 'extra_specs': {'key': 'value'}}}) def get_types_2(self, **kw): return (200, {}, {'volume_type': {'id': 2, @@ -1317,9 +1317,9 @@ class FakeHTTPClient(base_client.HTTPClient): 'storage_protocol': 'iSCSI', 'properties': { 'compression': { - u'title': u'Compression', - u'description': u'Enables compression.', - u'type': u'boolean'}, + 'title': 'Compression', + 'description': 'Enables compression.', + 'type': 'boolean'}, } } ) |
