You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/13 09:33:46 UTC

[40/46] libcloud git commit: don't use py3 compat unicode method for comparisons

don't use py3 compat unicode method for comparisons


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/014b10ff
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/014b10ff
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/014b10ff

Branch: refs/heads/trunk
Commit: 014b10ff67fbd1470d0bc46aad9877e704f0bdc0
Parents: 18bc55d
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 13 14:14:27 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 13 14:14:27 2017 +1000

----------------------------------------------------------------------
 libcloud/test/test_file_fixtures.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/014b10ff/libcloud/test/test_file_fixtures.py
----------------------------------------------------------------------
diff --git a/libcloud/test/test_file_fixtures.py b/libcloud/test/test_file_fixtures.py
index 94a0f90..7f67be0 100644
--- a/libcloud/test/test_file_fixtures.py
+++ b/libcloud/test/test_file_fixtures.py
@@ -16,7 +16,7 @@
 import sys
 import unittest
 
-from libcloud.utils.py3 import u, httplib
+from libcloud.utils.py3 import httplib
 from libcloud.test.file_fixtures import ComputeFileFixtures
 from libcloud.common.base import Connection, Response, JsonResponse, XmlResponse
 from libcloud.test import MockHttp
@@ -48,17 +48,17 @@ class MockHttpFileFixturesTests(unittest.TestCase):
 
     def test_unicode_response(self):
         r = self.connection.request("/unicode")
-        self.assertEqual(r.parse_body(), u("\u015a"))
+        self.assertEqual(r.parse_body(), u"\u015a")
 
     def test_json_unicode_response(self):
         self.connection.responseCls = JsonResponse
         r = self.connection.request("/unicode/json")
-        self.assertEqual(r.object, {'test': u("\u015a")})
+        self.assertEqual(r.object, {'test': u"\u015a"})
 
     def test_xml_unicode_response(self):
         self.connection.responseCls = XmlResponse
         response = self.connection.request("/unicode/xml")
-        self.assertEqual(response.object.text, u("\u015a"))
+        self.assertEqual(response.object.text, u"\u015a")
 
 
 class TestMockHttp(MockHttp):