def testAll(self): q = """ not plateform:winxp or ( code:200 and browser:firefox )""" query = Query(q) #print query.asXML() #print value(query, self.library) self.assertEquals(set([0]), value(query, self.library).results())
def testOr(self): query = Query(' plateform:winxp or plateform:linux') self.assertEquals(set([0, 1]), value(query, self.library).results())
def testDummy(self): query = Query('not (plateform:winxp)') self.assertEquals(set([0]), value(query, self.library).results())
def testSimple(self): query = Query('plateform:winxp') self.assertEquals(set([1]), value(query, self.library).results())