From b8f1be89105e469bb517956a9ba6b858987d0ac0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 27 Sep 2015 20:51:26 +0200 Subject: [PATCH] Swapped the names of two tests --- src/tests/presale/test_cart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/presale/test_cart.py b/src/tests/presale/test_cart.py index e100480b9..f75ca7aa0 100644 --- a/src/tests/presale/test_cart.py +++ b/src/tests/presale/test_cart.py @@ -327,7 +327,7 @@ class CartTest(CartTestMixin, TestCase): self.assertIn('no longer available', doc.select('.alert-danger')[0].text) self.assertFalse(CartPosition.objects.current.filter(user=self.user, event=self.event).exists()) - def test_restriction_failed(self): + def test_restriction_ok(self): self.event.plugins = 'tests.testdummy' self.event.save() self.event.settings.testdummy_available = 'yes' @@ -342,7 +342,7 @@ class CartTest(CartTestMixin, TestCase): self.assertIsNone(objs[0].variation) self.assertEqual(objs[0].price, 23) - def test_restriction_ok(self): + def test_restriction_failed(self): self.event.plugins = 'tests.testdummy' self.event.save() self.event.settings.testdummy_available = 'no'