summaryrefslogtreecommitdiff
path: root/tests/test_client/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client/tests.py')
-rw-r--r--tests/test_client/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 02f5113890..84d245c05e 100644
--- a/tests/test_client/tests.py
+++ b/tests/test_client/tests.py
@@ -829,8 +829,9 @@ class ClientTest(TestCase):
def test_response_raises_multi_arg_exception(self):
"""A request may raise an exception with more than one required arg."""
- with self.assertRaises(TwoArgException):
+ with self.assertRaises(TwoArgException) as cm:
self.client.get('/two_arg_exception/')
+ self.assertEqual(cm.exception.args, ('one', 'two'))
def test_uploading_temp_file(self):
with tempfile.TemporaryFile() as test_file: