Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107000
| From | David Palao <dpalao.python@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: How to parameterize unittests |
| Date | 2016-04-14 16:28 +0200 |
| Message-ID | <mailman.108.1460644129.15650.python-list@python.org> (permalink) |
| References | <570FA466.20003@rece.vub.ac.be> <CAKUKWzkg4TKXVBO8rD2YNXFWYen_wq+zJX1xtTAzX_R1dHZoyw@mail.gmail.com> |
2016-04-14 16:08 GMT+02:00 Antoon Pardon <antoon.pardon@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to parameterize unittests David Palao <dpalao.python@gmail.com> - 2016-04-14 16:28 +0200
csiph-web