/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.py

  • Committer: Martin Pool
  • Date: 2007-09-03 04:35:49 UTC
  • mfrom: (2778 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2779.
  • Revision ID: mbp@sourcefrog.net-20070903043549-0cfyrgx7z2h8ppks
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
        self.assertEqual(False, revision.is_reserved_id(
310
310
            'arch:a@example.com/c--b--v--r'))
311
311
        self.assertEqual(False, revision.is_reserved_id(None))
 
312
 
 
313
 
 
314
class TestRevisionMethods(TestCase):
 
315
 
 
316
    def test_get_summary(self):
 
317
        r = revision.Revision('1')
 
318
        r.message = 'a'
 
319
        self.assertEqual('a', r.get_summary())
 
320
        r.message = 'a\nb'
 
321
        self.assertEqual('a', r.get_summary())
 
322
        r.message = '\na\nb'
 
323
        self.assertEqual('a', r.get_summary())
 
324
 
 
325
    def test_get_apparent_author(self):
 
326
        r = revision.Revision('1')
 
327
        r.committer = 'A'
 
328
        self.assertEqual('A', r.get_apparent_author())
 
329
        r.properties['author'] = 'B'
 
330
        self.assertEqual('B', r.get_apparent_author())