'Permissions comparisons operate successfully.'

def testPermissionsParse(self):

    filt = filters.StatFilter()
    obj1 = self._GenStat(st_mode=33248)
    obj2 = self._GenStat(st_mode=33261)
    objs = [obj1, obj2]
    results = filt.Parse(objs, 'mode:0644')
    self.assertFalse(results)
    results = filt.Parse(objs, 'mode:0740')
    self.assertItemsEqual([obj1], results)
    results = filt.Parse(objs, 'mode:0640    mask:0640')
    self.assertItemsEqual(objs, results)
    results = filt.Parse(objs, 'mode:0014    mask:0014')
    self.assertItemsEqual([obj2], results)
