Commits

spikeekips committed 443b579

to pass the pep8 test

Comments (0)

Files changed (1)

examples/provider/oauth2_client_test/tests_with_httplib.py

 # Testing OAuth Client
 ##################################################
 
-import sys
 import urlparse
 import httplib
 import urllib
         {"submit": "login", "next": _next, "csrfmiddlewaretoken": _csrf, "username": "spikeekips", "password": user_password, },
         True
     ).replace("+", "%20"),
-    headers={'Content-Type' :'application/x-www-form-urlencoded', "cookie": dict(_response.getheaders()).get("set-cookie")}
+    headers={'Content-Type': 'application/x-www-form-urlencoded', "cookie": dict(_response.getheaders()).get("set-cookie")}
 )
 
 do_test(_response.status == 302, desc="trying to login", )
     oauth_request.method,
     oauth_request.url,
     body=oauth_request.to_postdata(),
-    headers={'Content-Type' :'application/x-www-form-urlencoded', },
+    headers={'Content-Type': 'application/x-www-form-urlencoded', },
 )
 
 do_test(_response.status == 200, )