How to parameterize unittests

David Palao dpalao.python at gmail.com
Thu Apr 14 10:28:46 EDT 2016


2016-04-14 16:08 GMT+02:00 Antoon Pardon <antoon.pardon at rece.vub.ac.be>:
>
> I have a unittest for my avltree module.
>
> Now I want this unittest to also run on a subclass of avltree.
> How can I organise this, so that I can largely reuse the
> original TestCase?
>
> --
> Antoon Pardon
> --
> https://mail.python.org/mailman/listinfo/python-list

First, is it necessary to test the functionality twice?

If so then, why don't you simply subclass the original TestCase?

Or am I missing the point of your question?

Best



More information about the Python-list mailing list