~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/tests/test_branchnamespace.py

  • Committer: Bryce Harrington
  • Date: 2011-07-13 17:11:43 UTC
  • mfrom: (13426 devel)
  • mto: This revision was merged to the branch mainline in revision 13431.
  • Revision ID: bryce@canonical.com-20110713171143-0inikq8fsfp3lzms
Re-merge head

Show diffs side-by-side

added added

removed removed

Lines of Context:
1225
1225
            namespace.validateRegistrant,
1226
1226
            self.factory.makePerson())
1227
1227
 
1228
 
    def test_registrant_special_access(self):
1229
 
        # If the registrant has special access to branches, then they are
1230
 
        # valid.
1231
 
        namespace = self._getNamespace(self.factory.makePerson())
1232
 
        bazaar_experts = getUtility(ILaunchpadCelebrities).bazaar_experts
1233
 
        special_person = bazaar_experts.teamowner
1234
 
        self.assertIs(None, namespace.validateRegistrant(special_person))
1235
 
 
1236
1228
    def test_existing_branch(self):
1237
1229
        # If a branch exists with the same name, then BranchExists is raised.
1238
1230
        namespace = self._getNamespace(self.factory.makePerson())