Exemple #1
0
 def test_paginated_response_get_with_default(self):
     response = PaginatedResponse(self.client, 'anyendpoint', TEST_DATA)
     self.assertEqual(response.get('badname', 'test_default'),
                      'test_default')
Exemple #2
0
 def test_paginated_response_get(self):
     response = PaginatedResponse(self.client, 'anyendpoint', TEST_DATA)
     self.assertEqual(response.get('meta'), TEST_META)