~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-20 08:37:32 UTC
  • mfrom: (4299 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4300.
  • Revision ID: tanner@real-time.com-20090420083732-bzx919oo7wpmqc2u
[merge] 1.14rc2 back into bzr.dev (Bob Tanner)

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
                r.get_apparent_author)
228
228
        self.assertEqual('C', author)
229
229
 
 
230
    def test_get_apparent_author_none(self):
 
231
        r = revision.Revision('1')
 
232
        author = self.applyDeprecated(
 
233
                symbol_versioning.deprecated_in((1, 13, 0)),
 
234
                r.get_apparent_author)
 
235
        self.assertEqual(None, author)
 
236
 
230
237
    def test_get_apparent_authors(self):
231
238
        r = revision.Revision('1')
232
239
        r.committer = 'A'
236
243
        r.properties['authors'] = 'C\nD'
237
244
        self.assertEqual(['C', 'D'], r.get_apparent_authors())
238
245
 
 
246
    def test_get_apparent_authors_no_committer(self):
 
247
        r = revision.Revision('1')
 
248
        self.assertEqual([], r.get_apparent_authors())
 
249
 
239
250
 
240
251
class TestRevisionBugs(TestCase):
241
252
    """Tests for getting the bugs that a revision is linked to."""