From fc84e0abd445f4afb885bc620e08d7e53757b960 Mon Sep 17 00:00:00 2001 From: Gavin Ballard Date: Tue, 5 May 2015 12:44:21 +0200 Subject: [PATCH] Use six to generate Unicode string for Python 3 support. --- test/session_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/session_test.py b/test/session_test.py index e329af89..82367ad3 100644 --- a/test/session_test.py +++ b/test/session_test.py @@ -6,6 +6,7 @@ from md5 import md5 import time from six.moves import urllib +from six import u class SessionTest(TestCase): @@ -133,7 +134,7 @@ def test_hmac_validation(self): 'code': 'a94a110d86d2452eb3e2af4cfb8a3828', 'timestamp': '1337178173', 'signature': '6e39a2ea9e497af6cb806720da1f1bf3', - 'hmac': unicode('2cb1a277650a659f1b11e92a4a64275b128e037f2c3390e3c8fd2d8721dac9e2'), + 'hmac': u('2cb1a277650a659f1b11e92a4a64275b128e037f2c3390e3c8fd2d8721dac9e2'), } self.assertTrue(shopify.Session.validate_hmac(params))