~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_merge_directive.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-24 00:11:15 UTC
  • mfrom: (1551.12.59 mergedirective-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20070324001115-e8868e5d82612556
Correctly handle empty merge directive texts

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        self.assertRaises(errors.NotAMergeDirective,
112
112
                          merge_directive.MergeDirective.from_lines, 'lala')
113
113
 
 
114
    def test_deserialize_empty(self):
 
115
        self.assertRaises(errors.NotAMergeDirective,
 
116
                          merge_directive.MergeDirective.from_lines, [])
 
117
 
114
118
    def test_deserialize_leading_junk(self):
115
119
        md = merge_directive.MergeDirective.from_lines(INPUT1)
116
120
        self.assertEqual('example:', md.revision_id)