~toddy/bzr/bzr.i18n

« back to all changes in this revision

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

  • Committer: Tobias Toedter
  • Date: 2007-12-30 18:52:13 UTC
  • mfrom: (2438.1.708 +trunk)
  • Revision ID: t.toedter@gmx.net-20071230185213-7xiqpbtshmnsf073
Merge trunk

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."""