<br><br><div class="gmail_quote">On Sun, Apr 5, 2009 at 1:37 AM, Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Michael Gratton <<a href="mailto:michael@quuxo.com">michael@quuxo.com</a>> writes:<br>
<br>
> In Python, a test class might look like:<br>
><br>
> class Foo(object):<br>
><br>
> @before<br>
> def newFoo(self): ...<br>
><br>
> @test<br>
> def handleFrobnostication(self): ...<br>
><br>
> @after<br>
> def destroyFoo(self): ...<br>
<br>
[…]<br>
<br>
> Does anyone have an implementation of this for Python?<br>
<br>
‘nose’ allows setup and teardown functions to be written, then used to<br>
decorate test functions:<br>
<br>