~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Aaron Bentley
  • Date: 2006-02-22 14:39:42 UTC
  • mto: (2027.1.2 revert-subpath-56549)
  • mto: This revision was merged to the branch mainline in revision 1570.
  • Revision ID: abentley@panoramicfeedback.com-20060222143942-ae72299f2de66767
Fixed build_tree with symlinks

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')