Re: Manuel and TestFixtures

Chris Withers <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
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  -  [email protected]
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.