/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/blackbox/test_commit.py

merge bzr.dev rev 4098

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
                     "tree/hello.txt"])
555
555
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
556
556
        properties = last_rev.properties
557
 
        self.assertEqual(u'John D\xf6 <jdoe@example.com>', properties['author'])
 
557
        self.assertEqual(u'John D\xf6 <jdoe@example.com>', properties['authors'])
558
558
 
559
559
    def test_author_no_email(self):
560
560
        """Author's name without an email address is allowed, too."""
565
565
                                "tree/hello.txt")
566
566
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
567
567
        properties = last_rev.properties
568
 
        self.assertEqual('John Doe', properties['author'])
 
568
        self.assertEqual('John Doe', properties['authors'])
 
569
 
 
570
    def test_multiple_authors(self):
 
571
        """Multiple authors can be specyfied, and all are stored."""
 
572
        tree = self.make_branch_and_tree('tree')
 
573
        self.build_tree(['tree/hello.txt'])
 
574
        tree.add('hello.txt')
 
575
        out, err = self.run_bzr("commit -m hello --author='John Doe' "
 
576
                                "--author='Jane Rey' tree/hello.txt")
 
577
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
 
578
        properties = last_rev.properties
 
579
        self.assertEqual('John Doe\nJane Rey', properties['authors'])
569
580
 
570
581
    def test_partial_commit_with_renames_in_tree(self):
571
582
        # this test illustrates bug #140419