~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_remember_option.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) 2011 Canonical Ltd
 
1
# Copyright (C) 2011, 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
117
117
        else:
118
118
            expected_submit_branch, expected_public_branch = expected_locations
119
119
        br, _ = branch.Branch.open_containing(self.working_dir)
120
 
        self.assertEquals(expected_submit_branch, br.get_submit_branch())
121
 
        self.assertEquals(expected_public_branch, br.get_public_branch())
 
120
        self.assertEqual(expected_submit_branch, br.get_submit_branch())
 
121
        self.assertEqual(expected_public_branch, br.get_public_branch())
122
122
 
123
123
 
124
124
class TestPushRemember(script.TestCaseWithTransportAndScript,
156
156
    def assertLocations(self, expected_locations):
157
157
        br, _ = branch.Branch.open_containing(self.working_dir)
158
158
        if not expected_locations:
159
 
            self.assertEquals(None, br.get_push_location())
 
159
            self.assertEqual(None, br.get_push_location())
160
160
        else:
161
161
            expected_push_location = expected_locations[0]
162
162
            push_location = urlutils.relative_url(br.base,
201
201
    def assertLocations(self, expected_locations):
202
202
        br, _ = branch.Branch.open_containing(self.working_dir)
203
203
        if not expected_locations:
204
 
            self.assertEquals(None, br.get_parent())
 
204
            self.assertEqual(None, br.get_parent())
205
205
        else:
206
206
            expected_pull_location = expected_locations[0]
207
207
            pull_location = urlutils.relative_url(br.base, br.get_parent())