def test_filter_by_comment(self):
        self.factory(comment="foo", tester__username="Tester 1")
        self.factory(comment="bar", tester__username="Tester 2")

        res = self.get(params={"filter-comment": "fo"})

        self.assertInList(res, "Tester 1")
        self.assertNotInList(res, "Tester 2")
Can filter by name.
dataset/ETHPy150Open mozilla/moztrap/tests/view/results/results/test_views.py/ResultsViewTest.test_filter_by_comment