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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-05-30 21:24:59 UTC
  • mfrom: (6630.1.4 deprecation)
  • Revision ID: breezy.the.bot@gmail.com-20170530212459-7n9a7isyb3nbim9y
Remove all deprecated arguments, functions and methods.

Merged from https://code.launchpad.net/~jelmer/brz/deprecation/+merge/324814

Show diffs side-by-side

added added

removed removed

Lines of Context:
790
790
        self.assertFalse('authors' in rev.properties)
791
791
 
792
792
    def test_commit_author(self):
793
 
        """Passing a non-empty author kwarg to MutableTree.commit should add
 
793
        """Passing a non-empty authors kwarg to MutableTree.commit should add
794
794
        the 'author' revision property.
795
795
        """
796
796
        tree = self.make_branch_and_tree('foo')
797
 
        rev_id = self.callDeprecated(['The parameter author was '
798
 
                'deprecated in version 1.13. Use authors instead'],
799
 
                tree.commit, 'commit 1', author='John Doe <jdoe@example.com>')
 
797
        rev_id = tree.commit(
 
798
            'commit 1',
 
799
            authors=['John Doe <jdoe@example.com>'])
800
800
        rev = tree.branch.repository.get_revision(rev_id)
801
801
        self.assertEqual('John Doe <jdoe@example.com>',
802
802
                         rev.properties['authors'])
820
820
                'Jane Rey <jrey@example.com>', rev.properties['authors'])
821
821
        self.assertFalse('author' in rev.properties)
822
822
 
823
 
    def test_author_and_authors_incompatible(self):
824
 
        tree = self.make_branch_and_tree('foo')
825
 
        self.assertRaises(AssertionError, tree.commit, 'commit 1',
826
 
                authors=['John Doe <jdoe@example.com>',
827
 
                         'Jane Rey <jrey@example.com>'],
828
 
                author="Jack Me <jme@example.com>")
829
 
 
830
823
    def test_author_with_newline_rejected(self):
831
824
        tree = self.make_branch_and_tree('foo')
832
825
        self.assertRaises(AssertionError, tree.commit, 'commit 1',