示例#1
0
 def test_update(self):
     PriceCurrency.objects.create(currency='BRL', tier=self.tier, price='2')
     update(tiers)
     eq_(str(PriceCurrency.objects.get(currency='BRL').price), '1.99')
示例#2
0
 def test_create(self):
     update(tiers)
     eq_(str(PriceCurrency.objects.get(currency='BRL').price), '1.99')
     assert not PriceCurrency.objects.filter(currency='CAD').exists()