How to parameterize unittests

Chris Angelico rosuav at gmail.com
Fri Apr 15 04:28:21 EDT 2016


On Fri, Apr 15, 2016 at 6:20 PM, Antoon Pardon
<antoon.pardon at rece.vub.ac.be> wrote:
> But the tests, at this moment, are not written to instantiate self.tree
> but to call avltree directly. So I have to rewrite these tests. That
> will IMO involve a lot of cut and paste.

Ah. In that case, it either involves a lot of editing (to make them
call self.tree), or monkey-patching the name 'avltree'.

ChrisA



More information about the Python-list mailing list