]> 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:25:27 +0000 (22:25 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Tue, 13 Aug 2013 05:25:27 +0000 (22:25 -0700)
Lib/test/test_ftplib.py

index dcf1fd9cff3f4456177596f4eaf68c89a70060f6..3a990420178b0192f676bd96e6c94a9daec235df 100644 (file)
@@ -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')