208
208
def test_get_apparent_author(self):
209
209
r = revision.Revision('1')
210
210
r.committer = 'A'
211
self.assertEqual('A', r.get_apparent_author())
212
r.properties['author'] = 'B'
213
self.assertEqual('B', r.get_apparent_author())
211
author = self.applyDeprecated(
212
symbol_versioning.deprecated_in((1, 13, 0)),
213
r.get_apparent_author)
214
self.assertEqual('A', author)
215
r.properties['author'] = 'B'
216
author = self.applyDeprecated(
217
symbol_versioning.deprecated_in((1, 13, 0)),
218
r.get_apparent_author)
219
self.assertEqual('B', author)
220
r.properties['authors'] = 'C\nD'
221
author = self.applyDeprecated(
222
symbol_versioning.deprecated_in((1, 13, 0)),
223
r.get_apparent_author)
224
self.assertEqual('C', author)
226
def test_get_apparent_authors(self):
227
r = revision.Revision('1')
229
self.assertEqual(['A'], r.get_apparent_authors())
230
r.properties['author'] = 'B'
231
self.assertEqual(['B'], r.get_apparent_authors())
232
r.properties['authors'] = 'C\nD'
233
self.assertEqual(['C', 'D'], r.get_apparent_authors())