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

  • Committer: Martin
  • Date: 2010-10-15 16:43:03 UTC
  • mto: This revision was merged to the branch mainline in revision 5510.
  • Revision ID: gzlist@googlemail.com-20101015164303-dcqt08g8oueb5mgg
Move guard to CommitBuilder.__init__ and test to bt.per_repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
793
793
        self.assertRaises(AssertionError, tree.commit, 'commit 1',
794
794
                authors=['John\nDoe <jdoe@example.com>'])
795
795
 
796
 
    def test_non_ascii_str_committer_rejected(self):
797
 
        """Ensure an error is raised on a non-ascii byte string committer"""
798
 
        tree = self.make_branch_and_tree(".")
799
 
        self.assertRaises(UnicodeDecodeError, tree.commit, "Empty commit",
800
 
            committer="Erik B\xe5gfors <erik@example.com>")
801
 
 
802
796
    def test_commit_with_checkout_and_branch_sharing_repo(self):
803
797
        repo = self.make_repository('repo', shared=True)
804
798
        # make_branch_and_tree ignores shared repos