merge from 3.3

Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
This commit is contained in:
Senthil Kumaran 2013-08-12 22:26:14 -07:00
commit 07abe7aedb
1 changed files with 8 additions and 0 deletions

View File

@ -530,6 +530,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')