/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_textmerge.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# Author: Aaron Bentley <aaron.bentley@utoronto.ca>
18
18
from breezy.textmerge import Merge2
19
19
from breezy.tests import TestCase
 
20
 
 
21
 
20
22
class TestMerge2(TestCase):
21
23
    def test_agreed(self):
22
24
        lines = "a\nb\nc\nd\ne\nf\n".splitlines(True)
29
31
        expected = "<\na\n=\nz\n>\nb\n<\nc\n=\nx\n>\nd\ne\n<\n=\ne\n>\nf\n"\
30
32
                   "g\n<\nh\n=\ny\n>\n"
31
33
        m2 = Merge2(lines_a, lines_b, '<\n', '>\n', '=\n')
32
 
        mlines= m2.merge_lines()[0]
 
34
        mlines = m2.merge_lines()[0]
33
35
        self.assertEqualDiff(''.join(mlines), expected)
34
 
        mlines= m2.merge_lines(reprocess=True)[0]
 
36
        mlines = m2.merge_lines(reprocess=True)[0]
35
37
        self.assertEqualDiff(''.join(mlines), expected)
36
38
 
37
39
    def test_reprocess(self):