Fixes an incorrect voucher test

This commit is contained in:
Christopher Neugebauer 2016-04-06 12:22:32 +10:00
parent 6f28c20b70
commit 8d07518a9b

View file

@ -114,6 +114,8 @@ class VoucherTestCases(RegistrationCartTestCase):
inv = InvoiceController.for_cart(current_cart.cart)
inv.pay("Hello!", inv.invoice.value)
current_cart = TestingCartController.for_user(self.USER_1)
with self.assertRaises(ValidationError):
current_cart.apply_voucher(voucher.code)