~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_last_revision_info.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2007 Canonical Ltd
 
1
# Copyright (C) 2007, 2009-2012, 2016 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
40
40
        tree1.commit('1st post')
41
41
        revid = tree1.commit('2st post', allow_pointless=True)
42
42
        branch2 = self.make_branch('branch2')
43
 
        self.assertEquals((2, revid),
 
43
        self.assertEqual((2, revid),
44
44
            branch2.import_last_revision_info_and_tags(tree1.branch, 2, revid))
45
45
        self.assertEqual((2, revid), branch2.last_revision_info())
46
46
        self.assertTrue(branch2.repository.has_revision(revid))