1 """ test_path.py - Test the path module.
2
3 This only runs on Posix and NT right now. I would like to have more
4 tests. You can help! Just add appropriate pathnames for your
5 platform (os.name) in each place where the p() function is called.
6 Then send me the result. If you can't get the test to run at all on
7 your platform, there's probably a bug in path.py -- please let me
8 know!
9
10 TempDirTestCase.testTouch() takes a while to run. It sleeps a few
11 seconds to allow some time to pass between calls to check the modify
12 time on files.
13
14 URL: http://www.jorendorff.com/articles/python/path
15 Author: Jason Orendorff <jason@jorendorff.com>
16 Date: 7 Mar 2004
17 Modified by Björn Lindqvist <bjourne@gmail.com>, January 2006
18 """
19
20 import unittest
21 import codecs, os, random, shutil, tempfile, time
22 from path import 