tests/readlink.py
author Steven Brown <StevenGBrown@gmail.com>
Sat, 17 May 2014 17:09:10 +0800
changeset 21484 96cdf2e3dbef
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
tests: tests for the rss feeds This matches the existing tests for the atom feeds.

#!/usr/bin/env python

import errno, os, sys

for f in sys.argv[1:]:
    try:
        print f, '->', os.readlink(f)
    except OSError, err:
        if err.errno != errno.EINVAL:
            raise
        print f, 'not a symlink'

sys.exit(0)