[Python-ideas] where statement in Pyret
Antoine Pitrou
solipsis at pitrou.net
Thu Nov 14 10:09:17 CET 2013
On Mon, 11 Nov 2013 07:57:21 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> > unittest-like structuration is really what works best for most testing
> situations, IMO. Alternative testing schemes for "easier" or "more
> intuitive" testing have generally failed as general-purpose tools.
>
> Agreed, but the spelling of test assertions as methods on test cases isn't
> an essential part of that structure.
That's true, OTOH I disagree that assertions as methods is any kind of
hindrance to easy testing. Actually, that paradigm makes it trivial to
define your own assertions in a way that makes them look like the
built-in ones.
Regards
Antoine.
More information about the Python-ideas
mailing list