コード例 #1
0
ファイル: test_models.py プロジェクト: MaxDumont/zamboni
 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
ファイル: test_models.py プロジェクト: MaxDumont/zamboni
 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')