diff --git a/tests/test_bootstrap_form.py b/tests/test_bootstrap_form.py index 51968238..8c1d692a 100644 --- a/tests/test_bootstrap_form.py +++ b/tests/test_bootstrap_form.py @@ -24,7 +24,7 @@ def clean(self): class BootstrapFormTestCase(BootstrapTestCase): def test_illegal_form(self): - with self.assertRaises(ValueError): + with self.assertRaises(TypeError): self.render("{% bootstrap_form form %}", {"form": "illegal"}) def test_exclude(self): diff --git a/tests/test_bootstrap_formset.py b/tests/test_bootstrap_formset.py index b5c9296f..11fbd0bb 100644 --- a/tests/test_bootstrap_formset.py +++ b/tests/test_bootstrap_formset.py @@ -50,5 +50,5 @@ def test_formset_post(self): ) def test_illegal_formset(self): - with self.assertRaises(ValueError): + with self.assertRaises(TypeError): self.render("{% bootstrap_formset formset %}", {"formset": "illegal"})