From 8d07518a9bc6412fece1ea0906cbf85446cef921 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Wed, 6 Apr 2016 12:22:32 +1000 Subject: [PATCH] Fixes an incorrect voucher test --- registrasion/tests/test_voucher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registrasion/tests/test_voucher.py b/registrasion/tests/test_voucher.py index de47c864..b9373583 100644 --- a/registrasion/tests/test_voucher.py +++ b/registrasion/tests/test_voucher.py @@ -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)