def _verify_pagination(<EOL>self,<EOL>page_object,<EOL>total_result,<EOL>page_number=<NUM_LIT:1>,<EOL>page_start=<NUM_LIT:0>,<EOL>page_end=PAGE_SIZE,<EOL>page_size=PAGE_SIZE<EOL>):
<EOL>assert page_object.number == page_number<EOL>assert list(page_object.object_list) == total_result[page_start:page_end]<EOL>assert page_object.paginator.count == len(total_result)<EOL>assert page_object.paginator.per_page == page_size<EOL>result_pages = int(ceil(len(total_result) / float(page_size))) if total_result else <NUM_LIT:1><EOL>assert page_object.paginator.num_pages == result_pages<EOL>assert list(page_object.paginator.object_list) == total_result<EOL>
Verifies pagination.