~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merged rocketfuel into trivial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
        adapter = IHasAffiliation(branch)
272
272
        self.assertEqual([branch.product], adapter.getPillars())
273
273
 
 
274
    def test_personal_branches_have_no_pillars(self):
 
275
        branch = self.factory.makeBranch(product=None)
 
276
        adapter = IHasAffiliation(branch)
 
277
        self.assertEqual([], adapter.getPillars())
 
278
 
274
279
    def test_getBranch(self):
275
280
        # The branch is the context.
276
281
        branch = self.factory.makeBranch()