/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_errors.py

  • Committer: John Arbash Meinel
  • Date: 2008-03-14 16:32:01 UTC
  • mfrom: (3277 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3280.
  • Revision ID: john@arbash-meinel.com-20080314163201-33r5errgr41hzaci
[merge] bzr.dev 3277, cleanup NEWS indentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib import (
22
22
    bzrdir,
23
23
    errors,
 
24
    osutils,
24
25
    symbol_versioning,
25
26
    urlutils,
26
27
    )
452
453
             "http://bug.com/"),
453
454
            str(err))
454
455
 
 
456
    def test_unable_encode_path(self):
 
457
        err = errors.UnableEncodePath('foo', 'executable')
 
458
        self.assertEquals("Unable to encode executable path 'foo' in "
 
459
            "user encoding " + osutils.get_user_encoding(),
 
460
            str(err))
 
461
 
 
462
    def test_unknown_format(self):
 
463
        err = errors.UnknownFormatError('bar', kind='foo')
 
464
        self.assertEquals("Unknown foo format: 'bar'", str(err))
 
465
 
455
466
 
456
467
class PassThroughError(errors.BzrError):
457
468