Skip to content

Commit a1f0bb4

Browse files
committed
Added the test for httplib2 kwargs. Fixes #136.
1 parent 9234cad commit a1f0bb4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_oauth.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,18 @@ class Blah():
12181218
except ValueError:
12191219
pass
12201220

1221+
def test_init_passes_kwargs_to_httplib2(self):
1222+
class Blah():
1223+
pass
1224+
1225+
consumer = oauth.Consumer('token', 'secret')
1226+
1227+
# httplib2 options
1228+
client = oauth.Client(consumer, None, cache='.cache', timeout=3, disable_ssl_certificate_validation=True)
1229+
self.assertNotEquals(client.cache, None)
1230+
self.assertEquals(client.timeout, 3)
1231+
1232+
12211233
def test_access_token_get(self):
12221234
"""Test getting an access token via GET."""
12231235
client = oauth.Client(self.consumer, None)

0 commit comments

Comments
 (0)