Added a test for mixing args and kwargs in reverse().
@@ -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(
