~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

Functional get_record_stream interface tests covering full interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
            "the currently open request.",
206
206
            str(error))
207
207
 
 
208
    def test_unavailable_representation(self):
 
209
        error = errors.UnavailableRepresentation(('key',), "mpdiff", "fulltext")
 
210
        self.assertEqualDiff("The encoding 'mpdiff' is not available for key "
 
211
            "('key',) which is encoded as 'fulltext'.",
 
212
            str(error))
 
213
 
208
214
    def test_unknown_hook(self):
209
215
        error = errors.UnknownHook("branch", "foo")
210
216
        self.assertEqualDiff("The branch hook 'foo' is unknown in this version"