aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_oauth1.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/tests/test_oauth1.py')
-rw-r--r--mediagoblin/tests/test_oauth1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_oauth1.py b/mediagoblin/tests/test_oauth1.py
index e41a68c7..fc4a2b01 100644
--- a/mediagoblin/tests/test_oauth1.py
+++ b/mediagoblin/tests/test_oauth1.py
@@ -25,7 +25,7 @@ from mediagoblin.tools import template, pluginapi
from mediagoblin.tests.tools import fixture_add_user
-class TestOAuth(object):
+class TestOAuth:
MIME_FORM = "application/x-www-form-urlencoded"
MIME_JSON = "application/json"
@@ -123,7 +123,7 @@ class TestOAuth(object):
def to_authorize_headers(self, data):
headers = ""
for key, value in data.items():
- headers += '{0}="{1}",'.format(key, value)
+ headers += '{}="{}",'.format(key, value)
return {"Authorization": "OAuth " + headers[:-1]}
def test_request_token(self):