def test_persona_dev(self): addon = Addon.objects.get(pk=3615) user = addon.authors.get() addon.update(type=amo.ADDON_PERSONA, average_daily_users=1) assert not tshirt_eligible(user) addon.update(average_daily_users=10000) assert tshirt_eligible(user)
def test_unlisted_dev(self): addon = Addon.objects.get(pk=3615) user = addon.authors.get() addon.update(is_listed=False) assert not tshirt_eligible(user) addon.versions.get().files.get().update(is_signed=True) assert tshirt_eligible(user)
def test_listed_dev(self): addon = Addon.objects.get(pk=3615) user = addon.authors.get() assert tshirt_eligible(user)
def test_normal_user(self): user = UserProfile.objects.get(email="*****@*****.**") assert not tshirt_eligible(user)
def test_normal_user(self): user = UserProfile.objects.get(email='*****@*****.**') assert not tshirt_eligible(user)