summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ftplib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:24:43 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:24:43 (GMT)
commit1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68 (patch)
tree9e27c6328919a6cbf9787a490e014915ca7748e6 /Lib/test/test_ftplib.py
parentb4e186cf113f77a51ae3387ceecc17b022a4b499 (diff)
downloadcpython-1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68.zip
cpython-1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68.tar.gz
cpython-1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68.tar.bz2
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
Diffstat (limited to 'Lib/test/test_ftplib.py')
-rw-r--r--Lib/test/test_ftplib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py
index c82e8a6..535bc49 100644
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -474,6 +474,14 @@ class TestFTPClass(TestCase):
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')