~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Martin Pool
  • Date: 2006-01-30 06:23:50 UTC
  • mfrom: (1534.1.17 integration)
  • Revision ID: mbp@sourcefrog.net-20060130062350-d6f25277ddcdfd79
[merge] robert's integration of much recent work

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import sys
22
22
 
23
23
import bzrlib
24
 
from bzrlib.errors import BzrBadParameter
 
24
from bzrlib.errors import BzrBadParameterNotUnicode
25
25
import bzrlib.osutils as osutils
26
26
from bzrlib.tests import TestCaseInTempDir, TestCase
27
27
 
78
78
        self.assertEqual(u'foo\xae', osutils.safe_unicode('foo\xc2\xae'))
79
79
 
80
80
    def test_bad_utf8_string(self):
81
 
        self.assertRaises(BzrBadParameter, osutils.safe_unicode, '\xbb\xbb')
 
81
        self.assertRaises(BzrBadParameterNotUnicode,
 
82
                          osutils.safe_unicode,
 
83
                          '\xbb\xbb')