~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branch.py

  • Committer: Martin Pool
  • Date: 2010-09-07 23:32:42 UTC
  • mto: (5414.1.1 deprecation)
  • mto: This revision was merged to the branch mainline in revision 5415.
  • Revision ID: mbp@canonical.com-20100907233242-udh8uf8mzx8q3t8v
Deprecate casting PushResult and PullResult to int to get the relative revno change

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    bzrdir,
30
30
    config,
31
31
    errors,
 
32
    symbol_versioning,
32
33
    tests,
33
34
    trace,
34
35
    transport,
624
625
        # this usage of results is not recommended for new code (because it
625
626
        # doesn't describe very well what happened), but for api stability
626
627
        # it's still supported
627
 
        a = "%d revisions pulled" % r
628
 
        self.assertEqual(a, "10 revisions pulled")
 
628
        self.assertEqual(self.applyDeprecated(
 
629
            symbol_versioning.deprecated_in((2, 3, 0)),
 
630
            r.__int__),
 
631
            10)
629
632
 
630
633
    def test_report_changed(self):
631
634
        r = _mod_branch.PullResult()