mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
This commit is contained in:
parent
bc4b8ebc8b
commit
0d53860e2c
1 changed files with 8 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue