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)
24
badge, ("/@@/distribution-badge", "Affiliated with Ubuntu"))
24
badge, ("/@@/distribution-badge", "Affiliated with Pting"))
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)
33
badge, ("/@@/product-badge", "Affiliated with Launchpad itself"))
33
badge, ("/@@/product-badge", "Affiliated with Pting"))