def METHOD_NAME(self):
    qs = Incident.objects.order_by("pk")
    expected = qs.stateful()
    result = IncidentFilter.incident_filter(qs, "stateful", True)
    self.assertEqual(list(expected), list(result.order_by("pk")))