Ejemplo n.º 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')
Ejemplo n.º 2
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')
Ejemplo n.º 3
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()
Ejemplo n.º 4
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()