Пример #1
0
 def test_add_currency(self):
     ap = AddonPremium(addon=self.addon, price=self.tier_one,
                       currencies=['USD', 'CAD'])
     eq_(len(ap.supported_currencies()), 2)
     eq_(ap.supported_currencies()[1][0], 'CAD')
Пример #2
0
 def test_add_currency(self):
     ap = AddonPremium(addon=self.addon,
                       price=self.tier_one,
                       currencies=['USD', 'CAD'])
     eq_(len(ap.supported_currencies()), 2)
     eq_(ap.supported_currencies()[1][0], 'CAD')
Пример #3
0
 def test_currencies(self):
     ap = AddonPremium(addon=self.addon, price=self.tier_one)
     assert self.tier_one.currencies()
     eq_(len(ap.supported_currencies()), 1)
     eq_(ap.supported_currencies()[0][0], 'USD')
Пример #4
0
 def test_currencies(self):
     ap = AddonPremium(addon=self.addon, price=self.tier_one)
     assert self.tier_one.currencies()
     eq_(len(ap.supported_currencies()), 1)
     eq_(ap.supported_currencies()[0][0], 'USD')