'More indirect loops should also be detected'

def test_indirect_symlink_loop(self):

    directory = os.path.join(self.tmpdir, 'directory')
    loop = os.path.join(directory, 'loop')
    os.mkdir(directory)
    os.symlink(self.tmpdir, loop)
    (result, errors) = path.find_mtimes(self.tmpdir, follow=True)
    self.assertEqual({}, result)
    self.assertEqual({loop: tests.IsA(Exception)}, errors)
