def METHOD_NAME(self):
    user = SourceUserFactory()
    tag1 = TagFactory(key="testkey1", value="testvalue1")
    tag2 = TagFactory(key="testkey2", value="testvalue2")
    incident5 = StatefulIncidentFactory(source=self.source1)
    for incident in (self.incident1, self.incident2, self.incident3):
        IncidentTagRelation.objects.get_or_create(tag=tag1, incident=incident, added_by=user)
    for incident in (self.incident3, self.incident4, incident5):
        IncidentTagRelation.objects.get_or_create(tag=tag1, incident=incident, added_by=user)
    qs = Incident.objects.order_by("pk")
    expected = qs.from_tags(str(tag1))
    result = IncidentFilter.incident_filter(qs, "tags", str(tag1))
    self.assertEqual(list(expected), list(result.order_by("pk")))