~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_send.py

  • Committer: Aaron Bentley
  • Date: 2007-08-09 04:54:42 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2690.
  • Revision ID: aaron.bentley@utoronto.ca-20070809045442-8himzbkqth0y5924
Ensure that a format 0.9 bundle is generated

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
        self.assertIs(merge_directive.MergeDirective2, md.__class__)
199
199
        s = StringIO(self.run_bzr('send -f branch -o- --format=0.9')[0])
200
200
        md = merge_directive.MergeDirective.from_lines(s.readlines())
 
201
        self.assertContainsRe(md.get_raw_bundle().splitlines()[0],
 
202
            '# Bazaar revision bundle v0.9')
 
203
        s = StringIO(self.run_bzr('bundle -f branch -o- --format=0.9')[0])
 
204
        md = merge_directive.MergeDirective.from_lines(s.readlines())
 
205
        self.assertContainsRe(md.get_raw_bundle().splitlines()[0],
 
206
            '# Bazaar revision bundle v0.9')
201
207
        self.assertIs(merge_directive.MergeDirective, md.__class__)
202
208
        self.run_bzr_error(['Bad value .* for option .format.'],
203
209
                            'send -f branch -o- --format=0.999')[0]