diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-23 00:23:23 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-23 00:23:23 +0100 |
commit | aab62394773c27e73996e8cb8fb425db3fa62d49 (patch) | |
tree | 5f7e8a14f557f9917179fc8f2d4e9987ef98097a /mediagoblin/tests/test_oauth1.py | |
parent | 59ff4790c9f33fe13ee0a411d4152bd256eaa06a (diff) | |
parent | a14d90c2db5ff96bdd72009a07f1afc0e8ef3595 (diff) | |
download | mediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.tar.lz mediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.tar.xz mediagoblin-aab62394773c27e73996e8cb8fb425db3fa62d49.zip |
Merge branch 'Federation'
Diffstat (limited to 'mediagoblin/tests/test_oauth1.py')
-rw-r--r-- | mediagoblin/tests/test_oauth1.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mediagoblin/tests/test_oauth1.py b/mediagoblin/tests/test_oauth1.py index 073c2884..568036e5 100644 --- a/mediagoblin/tests/test_oauth1.py +++ b/mediagoblin/tests/test_oauth1.py @@ -52,8 +52,8 @@ class TestOAuth(object): def register_client(self, **kwargs): """ Regiters a client with the API """ - - kwargs["type"] = "client_associate" + + kwargs["type"] = "client_associate" kwargs["application_type"] = kwargs.get("application_type", "native") return self.test_app.post("/api/client/register", kwargs) @@ -63,7 +63,7 @@ class TestOAuth(object): client_info = response.json client = self.db.Client.query.filter_by(id=client_info["client_id"]).first() - + assert response.status_int == 200 assert client is not None @@ -81,7 +81,7 @@ class TestOAuth(object): client_info = response.json client = self.db.Client.query.filter_by(id=client_info["client_id"]).first() - + assert client is not None assert client.secret == client_info["client_secret"] assert client.application_type == query["application_type"] @@ -163,4 +163,3 @@ class TestOAuth(object): assert request_token.client == client.id assert request_token.used == False assert request_token.callback == request_query["oauth_callback"] - |