def check_paginator(self, params, output):
count, num_pages, page_range = output<EOL>paginator = Paginator(*params)<EOL>self.check_attribute('<STR_LIT:count>', paginator, count, params)<EOL>self.check_attribute('<STR_LIT>', paginator, num_pages, params)<EOL>self.check_attribute('<STR_LIT>', paginator, page_range, params, coerce=list)<EOL>
Helper method that instantiates a Paginator object from the passed
params and then checks that its attributes match the passed output.