[TIP] Reusable test suites in nose
daniel.wandschneider at schrodinger.com
Mon Jan 7 13:44:58 PST 2013
You could also create a TestCase inheritance structure like this:
"provide virtual methods for interacting with the interface."
"provide real methods for interacting with the interface, and real
"provide real methods for interacting with the interface, uses tests
This would achieve the same result as use of your @onlyinsubclass
decorator. Granted, this breaks the SRP (
http://en.wikipedia.org/wiki/Single_responsibility_principle), but it
removes the dependence of your test on an outside module, which is a Good
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python