def METHOD_NAME(self):
    """
    Verify that the pager has links in HTML.
    """
    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})
    resp = self.client.get(path)
    self.assertContains(resp, "page=2")
    self.assertNotContains(resp, "page=1")
    self.assertFalse(b"page=1" in resp.content)
    resp = self.client.get(path + "?page=2")
    self.assertContains(resp, 'href="?page=1')
    self.assertNotContains(resp, 'href="?page=2')
    self.assertNotContains(resp, 'href="?page=3')