[TIP] Hi, beginner nose question
Pete
pfein at pobox.com
Tue Nov 20 06:25:02 PST 2007
On Tuesday November 20 2007 5:10:08 am iain duncan wrote:
> What if, for functional or integration tests, I want to run some fixture
> house keeping once *per* class, before and after all that classes tests?
> Say to store counters and what not in the classes namespace as static
> variables or class variables? Basically I wish as a naive newbie, that
> there was a third layer of setup/teardown. I figured out I could:
I'm also new to nose, but it looks like setup_class & teardown_class do what
you want. There are a few ways to spell those, see "Test classes" at
http://code.google.com/p/python-nose/wiki/WritingTests
--
Peter Fein || 773-575-0694 || pfein at pobox.com
http://www.pobox.com/~pfein/ || PGP: 0xCCF6AE6B
irc: pfein at freenode.net || jabber: peter.fein at gmail.com
More information about the testing-in-python
mailing list