[Happydoc-checkins] CVS: HappyDoc3/happydoclib test_scanner.py,1.5,1.6
Brought to you by:
doughellmann,
krlosaqp
From: Doug H. <dou...@us...> - 2002-12-08 17:18:34
|
Update of /cvsroot/happydoc/HappyDoc3/happydoclib In directory sc8-pr-cvs1:/tmp/cvs-serv15145/happydoclib Modified Files: test_scanner.py Log Message: Add a test for relative path from one module to another module in its parent directory. Index: test_scanner.py =================================================================== RCS file: /cvsroot/happydoc/HappyDoc3/happydoclib/test_scanner.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test_scanner.py 8 Dec 2002 17:01:58 -0000 1.5 --- test_scanner.py 8 Dec 2002 17:18:31 -0000 1.6 *************** *** 320,323 **** --- 320,335 ---- return + def testModuleParentDir(self): + target = self.expected_tree['levelOne']['one.py'] + start = self.expected_tree['levelOne']['levelTwo']['two.py'] + + relative_path = start.getPathToNode(target) + self.failUnlessEqual(relative_path, + ('..', + 'one.py', + ), + ) + return + def testParentDirOfDir(self): target = self.expected_tree['levelOne'] |