'Verify that walking a path with a cyclical symlink raises an error'

def test_walkCyclicalSymlink(self):

    self.createLinks()
    self.symlink(self.path.child('sub1').path, self.path.child('sub1').child('sub1.loopylink').path)
    def iterateOverPath():
        return [foo.path for foo in self.path.walk()]
    self.assertRaises(filepath.LinkError, iterateOverPath)
