Commit 32efb71e authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

just add another assertion to expose a potential html_escape problem

parent d8eb1263fd8f
......@@ -10,11 +10,13 @@ class NonRegrViewTests(WebTest):
def test_nonregr_threadview(self):
et = self.add_entity('EmailThread', title=u'my et')
ea = self.add_entity('EmailAddress', address=u'a@b.com')
self.execute('INSERT Email E: E subject "yo", E date %(date)s, E messageid "mid", '
'E sender EA, E in_thread ET WHERE ET eid %(et)s, EA eid %(ea)s',
{'et' : et.eid, 'ea' : ea.eid, 'date' : now()})
em_rset = self.execute('INSERT Email E: E subject "yo R&D", E date %(date)s, E messageid "mid", '
'E sender EA, E in_thread ET WHERE ET eid %(et)s, EA eid %(ea)s',
{'et' : et.eid, 'ea' : ea.eid, 'date' : now()})
rset = self.execute('Any E WHERE E eid %(x)s', {'x' : et.eid})
self.view('primary', rset)
self.view('primary', em_rset)
if __name__ == '__main__':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment