Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb

This commit is contained in:
Senthil Kumaran 2013-08-12 22:25:27 -07:00
parent bc4b8ebc8b
commit 0d53860e2c

View 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')