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

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


http://hg.python.org/cpython/rev/6816ae6c49ce
changeset:   85148:6816ae6c49ce
branch:      2.7
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Mon Aug 12 22:24:43 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
@@ -474,6 +474,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