~james-w/python-oops-tools/prod-deploy

« back to all changes in this revision

Viewing changes to src/oopstools/oops/test/test_dbsummaries.py

  • Committer: Tarmac
  • Author(s): Robert Collins
  • Date: 2012-09-10 06:15:42 UTC
  • mfrom: (38.1.1 bug-1048470)
  • Revision ID: launchpad@pqm.canonical.com-20120910061542-ae7lifmkmde4s9dx
This fixes handling of non-unicode pageids, which were stored OK in the DB, but broke HTML report rendering.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
            'type': 'Exception',
37
37
            'value': u'a unicode char (\xa7)',
38
38
            'time': datetime(2008, 1, 13, 23, 14, 23, 00, utc),
 
39
            'topic': u'more unicode \xa7',
39
40
            }
40
41
        ignored = parsed_oops_to_model_oops(
41
42
            python_oops, 'test_unicode_handling')
53
54
        fp = StringIO()
54
55
        self.summary.renderHTML(fp)
55
56
        self.assertThat(fp.getvalue(), Contains('a unicode char (\xc2\xa7)'))
 
57
        self.assertThat(fp.getvalue(), Contains('more unicode \xc2\xa7'))