~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_commit.py

  • Committer: John Arbash Meinel
  • Date: 2007-12-10 16:39:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3104.
  • Revision ID: john@arbash-meinel.com-20071210163900-2wo190x3shshcvup
Allow 'bzr commit --author' to take a unicode string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
520
520
        tree = self.make_branch_and_tree('tree')
521
521
        self.build_tree(['tree/hello.txt'])
522
522
        tree.add('hello.txt')
523
 
        self.run_bzr("commit -m hello --author='John Doe <jdoe@example.com>' "
524
 
                     "tree/hello.txt")
 
523
        self.run_bzr(["commit", '-m', 'hello',
 
524
                      '--author', u'John D\xf6 <jdoe@example.com>',
 
525
                     "tree/hello.txt"])
525
526
        last_rev = tree.branch.repository.get_revision(tree.last_revision())
526
527
        properties = last_rev.properties
527
 
        self.assertEqual('John Doe <jdoe@example.com>', properties['author'])
 
528
        self.assertEqual(u'John D\xf6 <jdoe@example.com>', properties['author'])
528
529
 
529
530
    def test_author_no_email(self):
530
531
        """Author's name without an email address is allowed, too."""