diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-08-13 05:26:14 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-08-13 05:26:14 (GMT) |
commit | 07abe7aedb4a92d396fcbbc70ade6e78ea2c4c1a (patch) | |
tree | 1c4b56eba8add9253324ea1beae6f1ce1558b4d6 /Lib/test | |
parent | 654f003a13c1340f5297eb5edc82720b9fe524aa (diff) | |
parent | 0d53860e2c9a280e11a1e2216ed0041c8a7ca632 (diff) | |
download | cpython-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.py | 8 |
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') |