equal
deleted
inserted
replaced
48 self.view('my-view', req=req) |
48 self.view('my-view', req=req) |
49 except Exception as e: |
49 except Exception as e: |
50 req.data['excinfo'] = sys.exc_info() |
50 req.data['excinfo'] = sys.exc_info() |
51 req.data['ex'] = e |
51 req.data['ex'] = e |
52 html = self.view('error', req=req) |
52 html = self.view('error', req=req) |
53 self.failUnless(re.search(r'^<input name="__signature" type="hidden" ' |
53 self.assertTrue(re.search(b'^<input name="__signature" type="hidden" ' |
54 'value="[0-9a-f]{32}" />$', |
54 b'value="[0-9a-f]{32}" />$', |
55 html.source, re.M)) |
55 html.source, re.M)) |
56 |
56 |
57 |
57 |
58 def test_error_submit_nosig(self): |
58 def test_error_submit_nosig(self): |
59 """ |
59 """ |