'L{FilePath.parents()} should return an iterator of every ancestor of
the L{FilePath} in question.'

def test_parents(self):

    L = []
    pathobj = self.path.child('a').child('b').child('c')
    fullpath = pathobj.path
    lastpath = fullpath
    thispath = os.path.dirname(fullpath)
    while (lastpath != self.root.path):
        L.append(thispath)
        lastpath = thispath
        thispath = os.path.dirname(thispath)
    self.assertEqual([x.path for x in pathobj.parents()], L)
