def METHOD_NAME(self):
    tests = (
        ("True", True),
        ("true", True),
        ("1", True),
        ("False", False),
        ("false", False),
        ("0", False),
        ("foo", False),
    )
    for param, expected in tests:
        dq = DelayedQuery(None, {"is_tagged": param}, None, None)
        self.assertEqual(
            dq._get_query_filter(),
            query.And([query.Term("has_tag", expected), self.has_no_owner]),
        )