On 08/09/2009 18:04, Chris Withers wrote: > Coming back to this ancient thread...
...and once more, only a year and a half later ;-) > What I'd really like to do is write a Manuel plugin that will be part of > testfixtures' TempDirectory and would handle the following: > > .. topic:: some/dir/myfile.py > :class: file > > :: > > class MyClass: > def something(self): > pass > > ...to write the file. > > ...and: > > .. topic:: some/dir/myfile.py > :class: expected-file > > :: > > class MyClass: > def something(self): > pass > > ...to check it exists and matches what should be there, emitting > meaningful error messages if things are wrong. ...this is now a reality: http://packages.python.org/testfixtures/files.html#using-with-manuel cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )