/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: Canonical.com Patch Queue Manager
  • Date: 2008-07-08 17:09:38 UTC
  • mfrom: (3287.20.5 non_utf8_77657)
  • Revision ID: pqm@pqm.ubuntu.com-20080708170938-gt3lvh2xejc4w8vf
(jam) Give a better error when encountering a bad filename (bug
        #77657)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
class TestErrors(TestCaseWithTransport):
32
32
 
 
33
    def test_bad_filename_encoding(self):
 
34
        error = errors.BadFilenameEncoding('bad/filen\xe5me', 'UTF-8')
 
35
        self.assertEqualDiff(
 
36
            "Filename 'bad/filen\\xe5me' is not valid in your current"
 
37
            " filesystem encoding UTF-8",
 
38
            str(error))
 
39
 
33
40
    def test_corrupt_dirstate(self):
34
41
        error = errors.CorruptDirstate('path/to/dirstate', 'the reason why')
35
42
        self.assertEqualDiff(