~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_testcase.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-16 20:38:35 UTC
  • mfrom: (13686.2.17 useoops)
  • Revision ID: launchpad@pqm.canonical.com-20110816203835-4q78rt0xz6zzuyka
[r=gmb][no-qa] More oops extraction. New deps oops-0.0.5
 oops-datedir-repo-0.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from StringIO import StringIO
9
9
import sys
10
10
 
11
 
import oops.serializer_rfc822
 
11
import oops_datedir_repo.serializer_rfc822
12
12
from storm.store import Store
13
13
from zope.component import getUtility
14
14
 
92
92
        # Safety net: ensure that no autocasts have occured even on Python 2.6
93
93
        # which is slightly better.
94
94
        self.assertIsInstance(content.getvalue(), str)
95
 
        from_details = oops.serializer_rfc822.read(content)
 
95
        from_details = oops_datedir_repo.serializer_rfc822.read(content)
 
96
        # informational is deprecated, but the serializer still inserts it in
 
97
        # 0.0.5.
 
98
        from_details.pop('informational', None)
96
99
        oops_report = errorlog.globalErrorUtility.getLastOopsReport()
97
100
        self.assertEqual(dict(oops_report.__dict__), from_details)