From 1eeba83867b08ccb688ee4fc0e1d60f3ed6f1f68 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 12 Aug 2013 22:24:43 -0700 Subject: Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb --- Lib/test/test_ftplib.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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') -- cgit v0.12