'L{FilePath.realpath} raises L{filepath.LinkError} if the path is a
symbolic link which is part of a cycle.'

def test_realpathCyclicalSymlink(self):

    self.symlink(self.path.child('link1').path, self.path.child('link2').path)
    self.symlink(self.path.child('link2').path, self.path.child('link1').path)
    self.assertRaises(filepath.LinkError, self.path.child('link2').realpath)
