~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-08-04 20:34:35 UTC
  • mfrom: (13608.1.4 person-picker-expand-1)
  • Revision ID: launchpad@pqm.canonical.com-20110804203435-o5cob6ra9jw8hev1
[r=jcsackett][bug=800361,
        798759] Restore picker expander and place it behind its own flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    def test_bugtask_distro_affiliation(self):
18
18
        # A person who owns a bugtask distro is affiliated.
19
19
        person = self.factory.makePerson()
20
 
        distro = self.factory.makeDistribution(owner=person)
 
20
        distro = self.factory.makeDistribution(owner=person, name='pting')
21
21
        bugtask = self.factory.makeBugTask(target=distro)
22
22
        badge = IHasAffiliation(bugtask).getAffiliationBadge(person)
23
23
        self.assertEqual(
24
 
            badge, ("/@@/distribution-badge", "Affiliated with Ubuntu"))
 
24
            badge, ("/@@/distribution-badge", "Affiliated with Pting"))
25
25
 
26
26
    def test_bugtask_product_affiliation(self):
27
27
        # A person who owns a bugtask product is affiliated.
28
28
        person = self.factory.makePerson()
29
 
        product = self.factory.makeProduct(owner=person)
 
29
        product = self.factory.makeProduct(owner=person, name='pting')
30
30
        bugtask = self.factory.makeBugTask(target=product)
31
31
        badge = IHasAffiliation(bugtask).getAffiliationBadge(person)
32
32
        self.assertEqual(
33
 
            badge, ("/@@/product-badge", "Affiliated with Launchpad itself"))
 
33
            badge, ("/@@/product-badge", "Affiliated with Pting"))