'Verify that, after making a path with cyclical symlinks, when the
supplied C{descend} predicate returns C{False}, the target is not
traversed, as if it was a simple symlink.'

def test_walkObeysDescendWithCyclicalSymlinks(self):

    self.createLinks()
    self.symlink(self.path.child('sub1').path, self.path.child('sub1').child('sub1.loopylink').path)
    def noSymLinks(path):
        return (not path.islink())
    def iterateOverPath():
        return [foo.path for foo in self.path.walk(descend=noSymLinks)]
    self.assertTrue(iterateOverPath())
