abstract test case using python unittest
Posted
by
gruszczy
on Stack Overflow
See other posts from Stack Overflow
or by gruszczy
Published on 2010-12-30T22:54:29Z
Indexed on
2010/12/30
23:54 UTC
Read the original article
Hit count: 391
Is it possible to create an abstract TestCase
, that will have some test_* methods, but this TestCase
won't be called and those methods will only be used in subclasses? I think I am going to have one abstract TestCase
in my test suite and it will be subclassed for a few different implementation of a single interface. This is why all test methods are the some, only one, internal method changes. How can I do it in elegant way?
© Stack Overflow or respective owner