~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-08 07:32:48 UTC
  • mfrom: (5138.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100408073248-aj7k8qkvbv4nzlxd
(igc for parthm) update -r dotted-revno support

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        r.message = None
212
212
        self.assertEqual('', r.get_summary())
213
213
 
 
214
    def test_get_apparent_author(self):
 
215
        r = revision.Revision('1')
 
216
        r.committer = 'A'
 
217
        author = self.applyDeprecated(
 
218
                symbol_versioning.deprecated_in((1, 13, 0)),
 
219
                r.get_apparent_author)
 
220
        self.assertEqual('A', author)
 
221
        r.properties['author'] = 'B'
 
222
        author = self.applyDeprecated(
 
223
                symbol_versioning.deprecated_in((1, 13, 0)),
 
224
                r.get_apparent_author)
 
225
        self.assertEqual('B', author)
 
226
        r.properties['authors'] = 'C\nD'
 
227
        author = self.applyDeprecated(
 
228
                symbol_versioning.deprecated_in((1, 13, 0)),
 
229
                r.get_apparent_author)
 
230
        self.assertEqual('C', author)
 
231
 
 
232
    def test_get_apparent_author_none(self):
 
233
        r = revision.Revision('1')
 
234
        author = self.applyDeprecated(
 
235
                symbol_versioning.deprecated_in((1, 13, 0)),
 
236
                r.get_apparent_author)
 
237
        self.assertEqual(None, author)
 
238
 
214
239
    def test_get_apparent_authors(self):
215
240
        r = revision.Revision('1')
216
241
        r.committer = 'A'