[Zope-dev] Manuel and TestFixtures
Chris Withers
chris at simplistix.co.uk
Fri Jan 14 07:42:12 EST 2011
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
More information about the Zope-Dev
mailing list