~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Andrew Bennetts
  • Date: 2007-06-26 06:18:07 UTC
  • mto: (2535.4.4 streaming-smart-fetch)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20070626061807-nuxew9ioocogpqs4
Simple implementation of Knit.insert_data_stream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            "cannot be broken.",
69
69
            str(error))
70
70
 
 
71
    def test_knit_data_stream_incompatible(self):
 
72
        error = errors.KnitDataStreamIncompatible(
 
73
            'stream format', 'target format')
 
74
        self.assertEqual('Cannot insert knit data stream of format '
 
75
                         '"stream format" into knit of format '
 
76
                         '"target format".', str(error))
 
77
 
71
78
    def test_knit_header_error(self):
72
79
        error = errors.KnitHeaderError('line foo\n', 'path/to/file')
73
80
        self.assertEqual("Knit header error: 'line foo\\n' unexpected"