~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Alexander Belchenko
  • Date: 2008-03-02 16:54:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3267.
  • Revision ID: bialix@ukr.net-20080302165419-2u0r0ogn1h7s4gib
because every mail client has different rules to compose command line we should encode arguments to 8 bit string only when needed.

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 encode executable path 'foo' in "
 
459
            "user encoding " + osutils.get_user_encoding(),
 
460
            str(err))
 
461
 
455
462
 
456
463
class PassThroughError(errors.BzrError):
457
464