def METHOD_NAME(self):
    template = """{% load highlight %}{% highlight entry with query %}"""
    context = {"entry": self.sample_entry, "query": "index"}
    self.assertEqual(
        self.render(template, context),
        '...<span class="highlighted">index</span>ing behavior for your model you can specify your own Search<span class="highlighted">Index</span> class.\nThis is useful for ensuring that future-dated or non-live content is not <span class="highlighted">index</span>ed\nand searchable.\n\nEvery custom Search<span class="highlighted">Index</span> ...',
    )
    template = """{% load highlight %}{% highlight entry with query html_tag "div" css_class "foo" max_length 100 %}"""
    context = {"entry": self.sample_entry, "query": "field"}
    self.assertEqual(
        self.render(template, context),
        '...<div class="foo">field</div> with\ndocument=True. This is the primary <div class="foo">field</div> that will get passed to the backend\nfor indexing...',
    )
    template = """{% load highlight %}{% highlight entry with query html_tag "div" css_class "foo" max_length 100 %}"""
    context = {"entry": self.sample_entry, "query": "Haystack"}
    self.assertEqual(
        self.render(template, context),
        '...<div class="foo">Haystack</div> is very similar to registering models and\nModelAdmin classes in the Django admin site. If y...',
    )
    template = """{% load highlight %}{% highlight "xxxxxxxxxxxxx foo bbxxxxx foo" with "foo" max_length 5 html_tag "span" %}"""
    context = {}
    self.assertEqual(
        self.render(template, context),
        '...<span class="highlighted">foo</span> b...',
    )