示例#1
0
 def test_paginated_response_next_page_does_not_exist(self):
     data = deepcopy(TEST_META)
     self.assertTrue(PaginatedResponse._next_page_exists(data))
     del data['pagination']['links']['next']
     self.assertFalse(PaginatedResponse._next_page_exists(data))
示例#2
0
 def test_paginated_response_next_page_exists(self):
     self.assertTrue(PaginatedResponse._next_page_exists(TEST_META))