'File regexes operate successfully.'

def testFileREParse(self):

    filt = filters.StatFilter()
    obj1 = self._GenStat(path='/etc/passwd')
    obj2 = self._GenStat(path='/etc/alternatives/ssh-askpass')
    obj3 = self._GenStat(path='/etc/alternatives/ssh-askpass.1.gz')
    objs = [obj1, obj2, obj3]
    results = filt.Parse(objs, 'file_re:pass')
    self.assertItemsEqual(objs, results)
    results = filt.Parse(objs, 'file_re:pass$')
    self.assertItemsEqual([obj2], results)
    results = filt.Parse(objs, 'file_re:^pass')
    self.assertItemsEqual([obj1], results)
