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