~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

Add validate method to ContainerReader and BytesRecordReader.

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
            "Invalid record: xxx",
294
294
            str(e))
295
295
 
 
296
    def test_container_has_excess_data(self):
 
297
        """Test the formatting of ContainerHasExcessDataError."""
 
298
        e = errors.ContainerHasExcessDataError("excess bytes")
 
299
        self.assertEqual(
 
300
            "Container has data after end marker: 'excess bytes'",
 
301
            str(e))
 
302
 
296
303
 
297
304
class PassThroughError(errors.BzrError):
298
305