~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_trace.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-21 18:21:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1953.
  • Revision ID: john@arbash-meinel.com-20060821182150-124585949a9ba684
Fix mutter() so even if args are invalid, it still works

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        self._log_file.flush()
90
90
        self.assertContainsRe(self._get_log(), 'the unicode character')
91
91
 
 
92
    def test_trace_argument_utf8(self):
 
93
        """Write a Unicode argument to the trace log"""
 
94
        mutter(u'the unicode character for benzene is %s',
 
95
               u'\N{BENZENE RING}'.encode('utf-8'))
 
96
        self._log_file.flush()
 
97
        self.assertContainsRe(self._get_log(), 'the unicode character')
 
98
 
92
99
    def test_report_broken_pipe(self):
93
100
        try:
94
101
            raise IOError(errno.EPIPE, 'broken pipe foofofo')