def METHOD_NAME(self):
    self.sq.add_filter(SQ(content="why"))
    self.sq.add_filter(SQ(pub_date__lte=datetime.datetime(2009, 2, 10, 1, 59)))
    self.sq.add_filter(SQ(author__gt="daniel"))
    self.sq.add_filter(SQ(created__lt=datetime.datetime(2009, 2, 12, 12, 13)))
    self.sq.add_filter(SQ(title__gte="B"))
    self.sq.add_filter(SQ(id__in=[1, 2, 3]))
    self.sq.add_filter(SQ(rating__range=[3, 5]))
    self.assertEqual(
        self.sq.build_query(),
        "((why) AND pub_date:([to 20090210015900]) AND author:({daniel to}) AND created:({to 20090212121300}) AND title:([B to]) AND id:(1 OR 2 OR 3) AND rating:([3 to 5]))",
    )