summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ftplib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:25:27 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:25:27 (GMT)
commit0d53860e2c9a280e11a1e2216ed0041c8a7ca632 (patch)
treea1cdd9f82b6267878773f30caa04cb19b7e728c3 /Lib/test/test_ftplib.py
parentbc4b8ebc8bc2f30c98a80c3bf9894666f7f3d04c (diff)
downloadcpython-0d53860e2c9a280e11a1e2216ed0041c8a7ca632.zip
cpython-0d53860e2c9a280e11a1e2216ed0041c8a7ca632.tar.gz
cpython-0d53860e2c9a280e11a1e2216ed0041c8a7ca632.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 dcf1fd9..3a99042 100644
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -529,6 +529,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')