'Verify that we get a blank page of users when requesting page 0 or a
page greater than the actual number of pages.'

def test_out_of_range(self):

    users = [UserFactory() for _ in range(5)]
    cohort = CohortFactory(course_id=self.course.id, users=users)
    response = self.request_users_in_cohort(cohort, self.course, 0)
    self.verify_users_in_cohort_and_response(cohort, response, expected_users=[], expected_page=0, expected_num_pages=1)
    response = self.request_users_in_cohort(cohort, self.course, 2)
    self.verify_users_in_cohort_and_response(cohort, response, expected_users=[], expected_page=2, expected_num_pages=1)
