On Sat, Jan 28, 2006 at 09:44:44PM +0000, Michael Kerrin wrote:
> Hi All,
> 
>   I have just fixed issue #533 and it just reminded me that I have some test 
> for the twisted ftp server written using the Twisted trial testing framework.
> 
>   The reason for this is that at the Neckar sprint I tried to write tests 
> for the zope.app.twisted.ftp.ftp.ZopeFTPShell. This object can be thought of 
> has middle ware between Twisted and Zope, in fact it lives more up in the 
> Twisted server then in Zope. Has most of the methods in this class return 
> Twisted deferred objects it was next to impossible to test these methods 
> using the standard zope testing framework. All these tests are pretty much 
> self contained i.e. even by removing zope.app.ftp the tests still pass and 
> there are only 26 of them.

With sufficiently recent Twisted (possibly 2.1, but definitely SVN), it should
be possible to run these tests with the standard zope testing framework.  Trial
is now unittest compatible enough that twisted.trial.unittests.TestCases can be
used in plain unittest.TestSuites, and so forth.

-Andrew.

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to