def test_bogus_currency_raises_exceptions(self): a_payment = PaymentFactory() with self.assertRaises(ValidationError): a_payment.currency = 'potatoes' a_payment.full_clean()