From: Senthil Kumaran Date: Tue, 13 Aug 2013 05:25:27 +0000 (-0700) Subject: Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb X-Git-Tag: v3.4.0a2~235^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d53860e2c9a280e11a1e2216ed0041c8a7ca632;p=thirdparty%2FPython%2Fcpython.git Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb --- diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index dcf1fd9cff3f..3a990420178b 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')