~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-31 02:05:10 UTC
  • mfrom: (2670.3.8 vf-data-stream)
  • Revision ID: pqm@pqm.ubuntu.com-20070831020510-emrlta5dk6ta95zp
(Andrew Bennetts) Add get_data_stream, insert_data_stream and get_format_signature to KnitVersionedFile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
            "cannot be broken.",
82
82
            str(error))
83
83
 
 
84
    def test_knit_data_stream_incompatible(self):
 
85
        error = errors.KnitDataStreamIncompatible(
 
86
            'stream format', 'target format')
 
87
        self.assertEqual('Cannot insert knit data stream of format '
 
88
                         '"stream format" into knit of format '
 
89
                         '"target format".', str(error))
 
90
 
84
91
    def test_knit_header_error(self):
85
92
        error = errors.KnitHeaderError('line foo\n', 'path/to/file')
86
93
        self.assertEqual("Knit header error: 'line foo\\n' unexpected"