/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_log.py

  • Committer: Lukáš Lalinský
  • Date: 2007-12-05 16:04:51 UTC
  • mto: This revision was merged to the branch mainline in revision 3080.
  • Revision ID: lalinsky@gmail.com-20071205160451-2crql4siyd3h1psb
Add one more test for config.parse_username().

Show diffs side-by-side

added added

removed removed

Lines of Context:
809
809
        lf = LogFormatter(None)
810
810
        self.assertEqual('John Doe', lf.short_committer(rev))
811
811
        rev.committer = 'John Smith <jsmith@example.com>'
812
 
        self.assertEqual('John Smith', lf.short_author(rev))
 
812
        self.assertEqual('John Smith', lf.short_committer(rev))
813
813
        rev.committer = 'John Smith'
814
 
        self.assertEqual('John Smith', lf.short_author(rev))
 
814
        self.assertEqual('John Smith', lf.short_committer(rev))
815
815
        rev.committer = 'jsmith@example.com'
816
 
        self.assertEqual('jsmith@example.com', lf.short_author(rev))
 
816
        self.assertEqual('jsmith@example.com', lf.short_committer(rev))
817
817
        rev.committer = '<jsmith@example.com>'
818
 
        self.assertEqual('jsmith@example.com', lf.short_author(rev))
 
818
        self.assertEqual('jsmith@example.com', lf.short_committer(rev))
 
819
        rev.committer = 'John Smith jsmith@example.com'
 
820
        self.assertEqual('John Smith', lf.short_committer(rev))
819
821
 
820
822
    def test_short_author(self):
821
823
        rev = Revision('a-id')
830
832
        self.assertEqual('jsmith@example.com', lf.short_author(rev))
831
833
        rev.properties['author'] = '<jsmith@example.com>'
832
834
        self.assertEqual('jsmith@example.com', lf.short_author(rev))
 
835
        rev.properties['author'] = 'John Smith jsmith@example.com'
 
836
        self.assertEqual('John Smith', lf.short_author(rev))