Added support for URLs with many parameters e.g. max-liked, max-results and max-comments. I'm not checking in the functional tests I'm using since I still haven't fixed the problem of getting back a usable list of JSON objects for pagination.
diff --git a/tests/test_discovery.py b/tests/test_discovery.py
index a217932..6af7d0b 100644
--- a/tests/test_discovery.py
+++ b/tests/test_discovery.py
@@ -61,7 +61,7 @@
except TypeError, e:
self.assertTrue('unexpected' in str(e))
- def test_resources(self):
+ def test_buzz_resources(self):
self.http = HttpMock('buzz.json', {'status': '200'})
buzz = build('buzz', 'v1', self.http)
self.assertTrue(getattr(buzz, 'activities'))
diff --git a/tests/test_json_model.py b/tests/test_json_model.py
index 477f88d..7b95d58 100644
--- a/tests/test_json_model.py
+++ b/tests/test_json_model.py
@@ -19,9 +19,11 @@
model = JsonModel()
headers = {}
- params = {}
+ path_params = {}
+ query_params = {}
+ body = None
- headers, params, query, body = model.request(headers, params)
+ headers, params, query, body = model.request(headers, path_params, query_params, body)
self.assertEqual(headers['accept'], 'application/json')
self.assertTrue('content-type' not in headers)
@@ -32,9 +34,11 @@
model = JsonModel()
headers = {}
- params = {'body': {}}
+ path_params = {}
+ query_params = {}
+ body = {}
- headers, params, query, body = model.request(headers, params)
+ headers, params, query, body = model.request(headers, path_params, query_params, body)
self.assertEqual(headers['accept'], 'application/json')
self.assertEqual(headers['content-type'], 'application/json')