fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
another vandalism fixed
[wolnelektury.git]
/
apps
/
piston
/
test.py
diff --git
a/apps/piston/test.py
b/apps/piston/test.py
index
57eda72
..
f19fb21
100644
(file)
--- a/
apps/piston/test.py
+++ b/
apps/piston/test.py
@@
-32,8
+32,8
@@
class OAuthClient(client.Client):
url = "http://testserver" + request['PATH_INFO']
req = oauth.OAuthRequest.from_consumer_and_token(
url = "http://testserver" + request['PATH_INFO']
req = oauth.OAuthRequest.from_consumer_and_token(
- self.consumer, token=self.token,
- http_method=request['REQUEST_METHOD'], http_url=url,
+ self.consumer, token=self.token,
+ http_method=request['REQUEST_METHOD'], http_url=url,
parameters=params
)
parameters=params
)
@@
-49,7
+49,7
@@
class OAuthClient(client.Client):
if isinstance(data, dict):
data = urlencode(data)
if isinstance(data, dict):
data = urlencode(data)
-
+
return super(OAuthClient, self).post(path, data, content_type, follow, **extra)
class TestCase(test.TestCase):
return super(OAuthClient, self).post(path, data, content_type, follow, **extra)
class TestCase(test.TestCase):