'Test filter construction with containment methods (contains vs anyof)'

def testAnyOf(self):

    assertEqual = self.assertEqual
    resource = current.s3db.resource('req_req_skill')
    req_req_skill = resource.table
    q = FS('skill_id').contains([1, 2])
    query = q.query(resource)
    expected = req_req_skill.skill_id.contains([1, 2], all=True)
    assertEqual(str(query), str(expected))
    q = FS('skill_id').anyof([1, 2])
    query = q.query(resource)
    expected = req_req_skill.skill_id.contains([1, 2], all=False)
    assertEqual(str(query), str(expected))
