/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: 2006-12-07 23:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2174.
  • Revision ID: john@arbash-meinel.com-20061207231834-zm3x2s92dvwy4ny3
Knit index files should ignore empty indexes rather than consider them corrupt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        error = errors.InstallFailed([None])
47
47
        self.assertEqual("Could not install revisions:\nNone", str(error))
48
48
 
 
49
    def test_knit_header_error(self):
 
50
        error = errors.KnitHeaderError('line foo\n', 'path/to/file')
 
51
        self.assertEqual("Knit header error: 'line foo\\n' unexpected"
 
52
                         " for file path/to/file", str(error))
 
53
 
49
54
    def test_medium_not_connected(self):
50
55
        error = errors.MediumNotConnected("a medium")
51
56
        self.assertEqualDiff(