/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_crash.py

  • Committer: Vincent Ladeuil
  • Date: 2009-08-28 12:38:01 UTC
  • mto: (4661.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4662.
  • Revision ID: v.ladeuil+lp@free.fr-20090828123801-3qoacc7k9pkzaxnh
Review feedback, fix typo and more cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    tests,
24
24
    )
25
25
 
26
 
from bzrlib.tests import feattures
 
26
from bzrlib.tests import features
27
27
 
28
28
 
29
29
class TestApportReporting(tests.TestCase):
36
36
        except AssertionError, e:
37
37
            pass
38
38
        outf = StringIO()
39
 
        crash_write_apport_report_to_file(sys.exc_info(), outf)
 
39
        crash._write_apport_report_to_file(sys.exc_info(), outf)
40
40
        report = outf.getvalue()
41
41
 
42
 
        self.assertContainsRe(report,
43
 
            '(?m)^BzrVersion:')
 
42
        self.assertContainsRe(report, '(?m)^BzrVersion:')
44
43
        # should be in the traceback
45
 
        self.assertContainsRe(report,
46
 
            'my error')
47
 
        self.assertContainsRe(report,
48
 
            'AssertionError')
49
 
        self.assertContainsRe(report,
50
 
            'test_apport_report_contents')
 
44
        self.assertContainsRe(report, 'my error')
 
45
        self.assertContainsRe(report, 'AssertionError')
 
46
        self.assertContainsRe(report, 'test_apport_report_contents')
51
47
        # should also be in there
52
 
        self.assertContainsRe(report,
53
 
            '(?m)^CommandLine:')
 
48
        self.assertContainsRe(report, '(?m)^CommandLine:')