~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/xmlrpc/tests/test_codehosting.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 18:59:36 UTC
  • mfrom: (14645.1.1 typos)
  • Revision ID: launchpad@pqm.canonical.com-20120106185936-c36ko9sfri1s2lkd
[r=bac][no-qa] Fix a slew of typos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1169
1169
        self.codehosting_api = frontend.getCodehostingEndpoint()
1170
1170
        self.factory = frontend.getLaunchpadObjectFactory()
1171
1171
 
1172
 
    def assertNoBranchIsAquired(self, *branch_types):
 
1172
    def assertNoBranchIsAcquired(self, *branch_types):
1173
1173
        """See `AcquireBranchToPullTests`."""
1174
1174
        branch_types = tuple(branch_type.name for branch_type in branch_types)
1175
1175
        pull_info = self.codehosting_api.acquireBranchToPull(branch_types)
1176
1176
        self.assertEqual((), pull_info)
1177
1177
 
1178
 
    def assertBranchIsAquired(self, branch, *branch_types):
 
1178
    def assertBranchIsAcquired(self, branch, *branch_types):
1179
1179
        """See `AcquireBranchToPullTests`."""
1180
1180
        branch = removeSecurityProxy(branch)
1181
1181
        branch_types = tuple(branch_type.name for branch_type in branch_types)
1197
1197
        # This is a bit random, but it works.  acquireBranchToPull marks the
1198
1198
        # branch it returns as started mirroring, but we should check that the
1199
1199
        # one we want is returned...
1200
 
        self.assertBranchIsAquired(branch, branch.branch_type)
 
1200
        self.assertBranchIsAcquired(branch, branch.branch_type)
1201
1201
 
1202
1202
    def test_branch_type_returned_mirrored(self):
1203
1203
        branch = self.factory.makeAnyBranch(branch_type=BranchType.MIRRORED)