aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_http_callback.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-06-02 20:59:28 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-06-02 20:59:28 +0300
commite49b7e02b2150413d2e78db709277fae0887be46 (patch)
tree6c39946f2b4aca080c75274f97ec263f793ae012 /mediagoblin/tests/test_http_callback.py
parenta80c74bbcc6ac0208cfef725a441810a29876cff (diff)
downloadmediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.lz
mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.xz
mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.zip
Use six.text_type instead of unicode().
I will be switch to use ``from __future__ import unicode_literals`` later.
Diffstat (limited to 'mediagoblin/tests/test_http_callback.py')
-rw-r--r--mediagoblin/tests/test_http_callback.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_http_callback.py b/mediagoblin/tests/test_http_callback.py
index 64b7ee8f..d0a8c823 100644
--- a/mediagoblin/tests/test_http_callback.py
+++ b/mediagoblin/tests/test_http_callback.py
@@ -17,6 +17,8 @@
import json
import pytest
+import six
+
from urlparse import urlparse, parse_qs
from mediagoblin import mg_globals
@@ -63,7 +65,7 @@ class TestHTTPCallback(object):
code = parse_qs(urlparse(redirect.location).query)['code'][0]
client = self.db.OAuthClient.query.filter(
- self.db.OAuthClient.identifier == unicode(client_id)).first()
+ self.db.OAuthClient.identifier == six.text_type(client_id)).first()
client_secret = client.secret