'Combining AND queries with OR should give
AND(OR(a, b), OR(c, d))'

def test_and_or(self):

    sqs1 = self.msqs.filter(content=u'foo').filter(content=u'oof')
    sqs2 = self.msqs.filter(content=u'bar').filter(content=u'rab')
    sqs = (sqs1 | sqs2)
    self.assertEqual(sqs.query.query_filter.connector, u'OR')
    self.assertEqual(repr(sqs.query.query_filter.children[0]), repr(sqs1.query.query_filter))
    self.assertEqual(repr(sqs.query.query_filter.children[1]), repr(sqs2.query.query_filter))
