[Zope3-checkins]
SVN: Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ftp/test/test_zope_ftp.py
add two more tests for the RMD and DELE commands
Michael Kerrin
michael.kerrin at openapp.biz
Sat Oct 8 05:27:14 EDT 2005
Log message for revision 38926:
add two more tests for the RMD and DELE commands
Changed:
U Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ftp/test/test_zope_ftp.py
-=-
Modified: Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ftp/test/test_zope_ftp.py
===================================================================
--- Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ftp/test/test_zope_ftp.py 2005-10-08 09:23:40 UTC (rev 38925)
+++ Zope3/branches/srichter-twisted-integration2/src/zope/app/twisted/ftp/test/test_zope_ftp.py 2005-10-08 09:27:14 UTC (rev 38926)
@@ -130,6 +130,20 @@
responseLines = wait(self.client.queueStringCommand('MKD /newdir'))
self.assertEqual(['257 "/newdir" created'], responseLines)
+ def test_RMD(self):
+ self.rootfs.mkdir_nocheck('/newdir')
+
+ self._authLogin()
+ responseLines = wait(self.client.queueStringCommand('RMD /newdir'))
+ self.assertEqual(['250 Requested File Action Completed OK'], responseLines)
+
+ def test_DELE(self):
+ self.rootfs.writefile_nocheck('/file.txt', StringIO('x' * 20))
+
+ self._authLogin()
+ responseLines = wait(self.client.queueStringCommand('DELE /file.txt'))
+ self.assertEqual(['250 Requested File Action Completed OK'], responseLines)
+
class FTPServerPasvDataConnectionTestCase(FTPServerTestCase,
test_ftp.FTPServerPasvDataConnectionTestCase):
More information about the Zope3-Checkins
mailing list