A critique of cgi.escape

Sion Arrowsmith siona at chiark.greenend.org.uk
Tue Sep 26 07:16:03 EDT 2006


Jon Ribbens  <jon+usenet at unequivocal.co.uk> wrote:
>In article <Xns98499CF9DCEE4duncanbooth at 127.0.0.1>, Duncan Booth wrote:
>> I guess you've never seen anyone write tests which retrieve some generated 
>> html and compare it against the expected value. If the page contains any 
>> unescaped quotes then this change would break it.
>You're right - I've never seen anyone do such a thing. It sounds like
>a highly dubious and very fragile sort of test to me, of very limited
>use.

So what sort of test would you use, that doesn't involve comparing
actual output against expected output?

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list