diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py index 91ad5a867f..e3b522f55f 100644 --- a/tests/urlpatterns_reverse/tests.py +++ b/tests/urlpatterns_reverse/tests.py @@ -290,6 +290,11 @@ class URLPatternReverse(SimpleTestCase): with self.assertRaises(NoReverseMatch): reverse(None) + def test_mixing_args_and_kwargs(self): + msg = "Don't mix *args and **kwargs in call to reverse()!" + with self.assertRaisesMessage(ValueError, msg): + reverse('name', args=['a'], kwargs={'b': 'c'}) + @override_script_prefix('/{{invalid}}/') def test_prefix_braces(self): self.assertEqual(