Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107000
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | David Palao <dpalao.python@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: How to parameterize unittests |
| Date | Thu, 14 Apr 2016 16:28:46 +0200 |
| Lines | 20 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de u49rO/dno4XAbtXODR0tFAWFzEJr9U4HHAdl7JCyatsA== |
| Return-Path | <dpalao.python@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.019 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'unittest': 0.07; 'cc:addr :python-list': 0.09; 'subject:How': 0.09; 'question?': 0.09; 'subclass': 0.09; 'received:io': 0.16; 'received:psf.io': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'first,': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'module.': 0.27; 'url:mailman': 0.30; 'run': 0.33; 'point': 0.33; 'url:python': 0.33; 'largely': 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'received:209': 0.38; 'why': 0.39; 'test': 0.39; 'url:mail': 0.40; 'your': 0.60; 'reuse': 0.66; 'pardon': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=kt6GNiLm8p3gecROWadm09506rrvUW592O1wuk94CqQ=; b=PBnPTLb+6yjVrRnQUSW2LqgtAH/n3NyLYgsHygKhcBdcHz027O2nHS7IhDf8k/gyu9 gzdTmrNLoOP8I6jqwDXFhot5kszjekKtOzbXnmY9XlD+rVOQHUpjiktAtT8rPwozcrzP zOpkLWn+vive3He+gGYuiCCdUMxTNQjRyOe7u+yTXlYQ0dbV5n1pAxR1iY3ptnPjIsp2 4wvTcYw/4ztyhGO6GeArwOp17O5ewt0KM3cTKaXxclwxeDkMzdOBRhhnzuFZH9us/oSj zaT3eAwljWSUdhsIqa2KXrwRx2aU80PK54FbBNmuZbLh4CDiWlAgKKTgl2RxGTlwJCPh xfnw== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=kt6GNiLm8p3gecROWadm09506rrvUW592O1wuk94CqQ=; b=OtmbmBV5pXrJVDWOVr2CmtVwC/NpPRw7UDbEI3yF+ZEekkVnzB0CcEwPWskTh3XWNH gJkDztWxtdL7XyyLkCH/aLmJrNnhuHs8miyd/l3a31O17guIDucYpj+qc3RZ/dMLoP7Y eKKfZc41ZKhVGDnnK8kcfDHh4AwtG6dxZttaNE7Sz4Tuitldj0qb1rXXZZLpSCQH6VwH QiBYK4o3vvz4ZNEOIrOPBSZwfrrXgOfC7up55ol06WcTMXOb87T/0pOZhELfdNjDvBA+ usx0ujJqL14NSmKKKAR3rBtbjBlmvfYyEmFUwg7JJXoq3pk9Iz2waQ5SJLMswa0EghVW MWDA== |
| X-Gm-Message-State | AOPr4FVjNTJ0B4Akna210Al/oY0fxSlnrqkZvEM9w8kSzO1i0lvRVefe3gRauHQC+t3T6jt7Rw0N4fWBJJb43g== |
| X-Received | by 10.140.104.13 with SMTP id z13mr18479271qge.68.1460644126578; Thu, 14 Apr 2016 07:28:46 -0700 (PDT) |
| In-Reply-To | <570FA466.20003@rece.vub.ac.be> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAKUKWzkg4TKXVBO8rD2YNXFWYen_wq+zJX1xtTAzX_R1dHZoyw@mail.gmail.com> |
| X-Mailman-Original-References | <570FA466.20003@rece.vub.ac.be> |
| Xref | csiph.com comp.lang.python:107000 |
Show key headers only | View raw
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