111
class AppendA(TestBase):
113
m3 = Merge3(['aaa\n', 'bbb\n'],
114
['aaa\n', 'bbb\n', '222\n'],
117
self.assertEquals(''.join(m3.merge_lines()),
120
class AppendB(TestBase):
122
m3 = Merge3(['aaa\n', 'bbb\n'],
124
['aaa\n', 'bbb\n', '222\n'])
126
self.assertEquals(''.join(m3.merge_lines()),
129
class AppendAgreement(TestBase):
131
m3 = Merge3(['aaa\n', 'bbb\n'],
132
['aaa\n', 'bbb\n', '222\n'],
133
['aaa\n', 'bbb\n', '222\n'])
135
self.assertEquals(''.join(m3.merge_lines()),
138
class AppendClash(TestBase):
140
m3 = Merge3(['aaa\n', 'bbb\n'],
141
['aaa\n', 'bbb\n', '222\n'],
142
['aaa\n', 'bbb\n', '333\n'])
144
ml = m3.merge_lines(name_a='a',
149
self.assertEquals(''.join(ml),
111
161
class InsertAgreement(TestBase):
112
162
def runTest(self):
113
163
m3 = Merge3(['aaa\n', 'bbb\n'],
114
164
['aaa\n', '222\n', 'bbb\n'],
115
165
['aaa\n', '222\n', 'bbb\n'])
167
ml = m3.merge_lines(name_a='a',
117
172
self.assertEquals(''.join(m3.merge_lines()),
118
173
'aaa\n222\nbbb\n')
122
178
class InsertClash(TestBase):
123
179
"""Both try to insert lines in the same place."""
124
180
def runTest(self):