Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d53860

Browse files
committed
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
1 parent bc4b8eb commit 0d53860

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lib/test/test_ftplib.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,14 @@ def test_mkd(self):
529529
def test_rmd(self):
530530
self.client.rmd('foo')
531531

532+
def test_cwd(self):
533+
dir = self.client.cwd('/foo')
534+
self.assertEqual(dir, '250 cwd ok')
535+
536+
def test_mkd(self):
537+
dir = self.client.mkd('/foo')
538+
self.assertEqual(dir, '/foo')
539+
532540
def test_pwd(self):
533541
dir = self.client.pwd()
534542
self.assertEqual(dir, 'pwd ok')

0 commit comments

Comments
 (0)