Exemplo n.º 1
0
 def test_bogus_currency_raises_exceptions(self):
     a_payment = PaymentFactory()
     with self.assertRaises(ValidationError):
         a_payment.currency = 'potatoes'
         a_payment.full_clean()
Exemplo n.º 2
0
 def test_bogus_currency_raises_exceptions(self):
     a_payment = PaymentFactory()
     with self.assertRaises(ValidationError):
         a_payment.currency = 'potatoes'
         a_payment.full_clean()