A critique of cgi.escape

Simon Brunning simon at brunningonline.net
Tue Sep 26 12:14:50 EDT 2006


On 26 Sep 2006 15:53:46 GMT, Jon Ribbens <jon+usenet at unequivocal.co.uk> wrote:
> To be honest I'm not sure what *sort* of code people test this way. It
> just doesn't seem appropriate at all for web page generating code. Web
> pages need to be manually viewed in web browsers, and validated, and
> checked for accessibility. Checking they're equal to a particular
> string just seems bizarre (and where does that string come from
> anyway?)

The kind of acceptance testing that you are talking about is very
important, but you can't automate "Does it look OK in a browser?".
Unit tests suitable for automation don't have anything to work with
*but* the generated HTML.

-- 
Cheers,
Simon B,
simon at brunningonline.net



More information about the Python-list mailing list