]> granicus.if.org Git - python/commitdiff
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
authorSenthil Kumaran <senthil@uthcode.com>
Tue, 13 Aug 2013 05:24:43 +0000 (22:24 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 13 Aug 2013 05:24:43 +0000 (22:24 -0700)
Lib/test/test_ftplib.py

index c82e8a69bf36d02368688588b25b4c13af4604d4..535bc49f061c388b418865ffe7e6f04319a85516 100644 (file)
@@ -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')