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

def test_or_and(self):

    sqs1 = self.msqs.filter(content=u'foo').filter_or(content=u'oof')
    sqs2 = self.msqs.filter(content=u'bar').filter_or(content=u'rab')
    sqs = (sqs1 & sqs2)
    self.assertEqual(sqs.query.query_filter.connector, u'AND')
    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))
