def METHOD_NAME(self):
    term = GlossaryTerm(
        slug="algorithm",
        term="Algorithms",
        definition="<p>Algorithms definition.</p>"
    )
    term.save()
    url = reverse("chapters:glossary_json")
    response = self.client.get(url, {"term": "pixel"})
    self.assertEqual(404, response.status_code)