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 <anthonys...@apache.org>
Authored: Thu Apr 13 14:14:27 2017 +1000
Committer: Anthony Shaw <anthonys...@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("Ś"))
+        self.assertEqual(r.parse_body(), u"Ś")
 
     def test_json_unicode_response(self):
         self.connection.responseCls = JsonResponse
         r = self.connection.request("/unicode/json")
-        self.assertEqual(r.object, {'test': u("Ś")})
+        self.assertEqual(r.object, {'test': u"Ś"})
 
     def test_xml_unicode_response(self):
         self.connection.responseCls = XmlResponse
         response = self.connection.request("/unicode/xml")
-        self.assertEqual(response.object.text, u("Ś"))
+        self.assertEqual(response.object.text, u"Ś")
 
 
 class TestMockHttp(MockHttp):

Reply via email to