summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:26:14 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-08-13 05:26:14 (GMT)
commit07abe7aedb4a92d396fcbbc70ade6e78ea2c4c1a (patch)
tree1c4b56eba8add9253324ea1beae6f1ce1558b4d6 /Lib/test
parent654f003a13c1340f5297eb5edc82720b9fe524aa (diff)
parent0d53860e2c9a280e11a1e2216ed0041c8a7ca632 (diff)
downloadcpython-07abe7aedb4a92d396fcbbc70ade6e78ea2c4c1a.zip
cpython-07abe7aedb4a92d396fcbbc70ade6e78ea2c4c1a.tar.gz
cpython-07abe7aedb4a92d396fcbbc70ade6e78ea2c4c1a.tar.bz2
merge from 3.3
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
Diffstat (limited to 'Lib/test')
-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 f93a621..25e34be 100644
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -530,6 +530,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')