def METHOD_NAME(self):
    q = query(
        [
            ("filter:key1", "foo"),
            ("filter:key2", "foo"),
            ("filter:key2", "bar"),
            ("facet", "key2"),
            ("filter:key3", "blah"),
            ("filter:key3", "blahblah"),
            ("facet", "key3"),
        ]
    )
    self.assertEqual(q.get_filters(), [{"term": {"key1": "foo"}}])
    self.assertEqual(
        q.get_post_filters(),
        {
            "bool": {
                "filter": [
                    {"terms": {"key2": ["foo", "bar"]}},
                    {"terms": {"key3": ["blah", "blahblah"]}},
                ]
            }
        },
    )