I love assert

Chris Angelico rosuav at gmail.com
Fri Nov 28 22:02:40 EST 2014


On Sat, Nov 29, 2014 at 1:56 PM, MRAB <python at mrabarnett.plus.com> 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



More information about the Python-list mailing list