[Python-checkins] cpython (3.3): Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb

senthil.kumaran python-checkins at python.org
Tue Aug 13 07:26:24 CEST 2013


http://hg.python.org/cpython/rev/68b599740aa0
changeset:   85149:68b599740aa0
branch:      3.3
parent:      85146:f8cf0f997dfa
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Mon Aug 12 22:25:27 2013 -0700
summary:
  Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb

files:
  Lib/test/test_ftplib.py |  8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -529,6 +529,14 @@
     def test_rmd(self):
         self.client.rmd('foo')
 
+    def test_cwd(self):
+        dir = self.client.cwd('/foo')
+        self.assertEqual(dir, '250 cwd ok')
+
+    def test_mkd(self):
+        dir = self.client.mkd('/foo')
+        self.assertEqual(dir, '/foo')
+
     def test_pwd(self):
         dir = self.client.pwd()
         self.assertEqual(dir, 'pwd ok')

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list