# HG changeset patch # User Adrien Di Mascio # Date 1316678180 -7200 # Node ID 3ecd114f6d751656aba526f51513090ac2b87648 # Parent a8a424a78c269525059f160b7cc258f79ac0de0e [testlib] make self.view() return raw output if no validator is used This will make it possible to parse and test view's output even if no validator is associated to the view's content type. diff -r a8a424a78c26 -r 3ecd114f6d75 devtools/testlib.py --- a/devtools/testlib.py Wed Sep 21 17:38:44 2011 +0200 +++ b/devtools/testlib.py Thu Sep 22 09:56:20 2011 +0200 @@ -828,7 +828,7 @@ output = output.strip() validator = self.get_validator(view, output=output) if validator is None: - return + return output # return raw output if no validator is defined if isinstance(validator, htmlparser.DTDValidator): # XXX remove used in progress widget, unknown in html dtd output = re.sub('', '', output)