Permalink
Browse files

Added test for rename

  • Loading branch information...
1 parent aed55bf commit e16a7209a3c5b9284587649df3cee0c7abb0e70c @jaraco committed Nov 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 test_path.py
View
@@ -204,6 +204,13 @@ def testMakedirs_pReturnsSelfEvenIfExists(self):
ret = p.makedirs_p()
self.assertEquals(p, ret)
+ def testRenameReturnsSelf(self):
+ p = path(self.tempdir) / "somefile"
+ p.touch()
+ target = path(self.tempdir) / "otherfile"
+ ret = p.rename(target)
+ self.assertEquals(target, ret)
+
class TempDirTestCase(unittest.TestCase):
def setUp(self):
# Create a temporary directory.

0 comments on commit e16a720

Please sign in to comment.