~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_xmlrpc.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-04 22:30:45 UTC
  • mfrom: (14617.4.4 use-people-where-possible)
  • Revision ID: launchpad@pqm.canonical.com-20120104223045-vinsdew4chhym4ri
[r=sinzui][no-qa] Switch most tests to use Persons instead of
        Accounts. We don't support personless accounts any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010-2012 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Testing registry-related xmlrpc calls."""
88
88
 
89
89
    def test_getOrCreateSoftwareCenterCustomer_xmlrpc_error(self):
90
90
        # A suspended account results in an appropriate xmlrpc fault.
91
 
        suspended_account = self.factory.makeAccount(
92
 
            'Joe Blogs', email='a@b.com', status=AccountStatus.SUSPENDED)
 
91
        suspended_person = self.factory.makePerson(
 
92
            displayname='Joe Blogs', email='a@b.com',
 
93
            account_status=AccountStatus.SUSPENDED)
93
94
        openid_identifier = removeSecurityProxy(
94
 
            suspended_account).openid_identifiers.any().identifier
 
95
            suspended_person.account).openid_identifiers.any().identifier
95
96
 
96
97
        # assertRaises doesn't let us check the type of Fault.
97
98
        fault_raised = False