def METHOD_NAME(self):
    unit = self.get_unit()
    unit.source_unit.extra_flags = "max-size:1:1"
    unit.source_unit.save()
    check = self.create_check("max-size")
    url = reverse(
        "render-check", kwargs={"check_id": check.name, "unit_id": unit.id}
    )
    self.assertEqual(
        str(check.get_description()),
        format_html(
            '<a href="{0}?pos=0" class="thumbnail">'
            '<img class="img-responsive" src="{0}?pos=0" /></a>',
            url,
        ),
    )
    self.assert_png(self.client.get(url))