~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-27 02:14:31 UTC
  • mfrom: (14033.3.1 branch-affiliation)
  • Revision ID: launchpad@pqm.canonical.com-20110927021431-al6n30epo16l5nuc
[r=benji][bug=857697] Personal branches do not have project
        affiliation.

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()