def METHOD_NAME(self, render):
    """
    Verify that the pager is working when page number is too high.
    """
    issuer = models.Issuer(name="name", slug="slug")
    issuer.save()
    for _ in range(45):
        agreement_factory(issuer=issuer)
    path = reverse("issuer_search", kwargs={"issuer_slug": issuer.slug})
    self.client.get(path + "?page=2")
    object_ids2 = list(
        map(lambda o: o.id, render.call_args[0][2]["page"].object_list)
    )
    self.client.get(path + "?page=5555")
    object_ids5555 = list(
        map(lambda o: o.id, render.call_args[0][2]["page"].object_list)
    )
    self.assertEqual(5, len(object_ids2))
    self.assertEqual(5, len(object_ids5555))
    self.assertEqual(object_ids2, object_ids5555)