diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2013-08-13 05:24:43 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2013-08-13 05:24:43 (GMT) |
commit | 1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68 (patch) | |
tree | 9e27c6328919a6cbf9787a490e014915ca7748e6 /Lib/test/test_ftplib.py | |
parent | b4e186cf113f77a51ae3387ceecc17b022a4b499 (diff) | |
download | cpython-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.py | 8 |
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') |