Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'mrab': 0.05; 'correct.': 0.07; 'testing,': 0.09; 'tests,': 0.09; 'cc:addr:python-list': 0.11; 'missed': 0.12; '"unit': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sat,': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'tests': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'assert': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'unit': 0.37; 'nov': 0.38; 'pm,': 0.38 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:content-type; bh=SDkfpZW4HzZxCat7JMizQFMgKFywQj/quBD9eUKUPqo=; b=GX/R8I8zOxyz9Jm+heShkrHbb4AaVAAiHWNYUwN0/eyPuk8Eikk2w85V+hTL6c18LF zaUE+5S/SXzEHb8Z3n9SsyZ97kXSc1clz+8h6NxBbyutdbStLcxLhI9OZ3IU99kNBSzS 1Cm+a2lkjxcidLwr50DIZFGaU5i/Eam3EZNgGzXRPgzGYo1zC33FeFrgAfI9qh1FKaHW gEKUsw1TNJssEgh+EvWUF5UdE0bSP3VARE3L/b7U3SFuOua7Wxh+M0hOv+JKqjWuIrCL Dq3En/UWo/vaPkBHW2SUz0YMseg8ZO1sbofYJnbdDtXZQs2HHK/PVVLCFzQVfrccO4te HfQA== MIME-Version: 1.0 X-Received: by 10.50.152.104 with SMTP id ux8mr36057079igb.14.1417230160638; Fri, 28 Nov 2014 19:02:40 -0800 (PST) In-Reply-To: <547935DE.9070509@mrabarnett.plus.com> References: <96c138e4-ab95-4e5f-a0c8-e696b5a926bb@googlegroups.com> <5CCdw.40818$9A7.12372@fx27.am4> <547921c9$0$13013$c3e8da3$5496439d@news.astraweb.com> <547935DE.9070509@mrabarnett.plus.com> Date: Sat, 29 Nov 2014 14:02:40 +1100 Subject: Re: I love assert From: Chris Angelico To: MRAB Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417230169 news.xs4all.nl 2866 [2001:888:2000:d::a6]:60282 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81708 On Sat, Nov 29, 2014 at 1:56 PM, MRAB wrote: > On 2014-11-29 01:30, Steven D'Aprano wrote: > [snip] >> >> I stress that assertions aren't a replacement for unit testing, but they >> compliment unit testing: assertions can help cover code missed by your >> unit >> tests, and check that your unit tests are correct. >> > [snip] > > I think you meant "complement". :-) assert "Unit tests are soooooo clever" ChrisA