~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-14 10:17:12 UTC
  • mto: This revision was merged to the branch mainline in revision 6501.
  • Revision ID: v.ladeuil+lp@free.fr-20120314101712-8m19vlkis5yr0xtp
Yet more deprecated code removals

Show diffs side-by-side

added added

removed removed

Lines of Context:
736
736
 
737
737
class TestPullResult(tests.TestCase):
738
738
 
739
 
    def test_pull_result_to_int(self):
740
 
        # to support old code, the pull result can be used as an int
741
 
        r = _mod_branch.PullResult()
742
 
        r.old_revno = 10
743
 
        r.new_revno = 20
744
 
        # this usage of results is not recommended for new code (because it
745
 
        # doesn't describe very well what happened), but for api stability
746
 
        # it's still supported
747
 
        self.assertEqual(self.applyDeprecated(
748
 
            symbol_versioning.deprecated_in((2, 3, 0)),
749
 
            r.__int__),
750
 
            10)
751
 
 
752
739
    def test_report_changed(self):
753
740
        r = _mod_branch.PullResult()
754
741
        r.old_revid = "old-revid"