~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: Martin Pool
  • Date: 2009-03-05 02:15:46 UTC
  • mfrom: (4078 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4081.
  • Revision ID: mbp@sourcefrog.net-20090305021546-catovbht4xnwypto
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
 
225
 
 
226
    def test_get_apparent_authors(self):
 
227
        r = revision.Revision('1')
 
228
        r.committer = 'A'
 
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())