Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test for rename

  • Loading branch information...
commit e16a7209a3c5b9284587649df3cee0c7abb0e70c 1 parent aed55bf
@jaraco authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test_path.py
View
7 test_path.py
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.