summaryrefslogtreecommitdiffstats
path: root/tests/test_spplus.py
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2018-08-22 21:14:53 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2018-08-22 21:14:53 (GMT)
commite8f12c5d1fd7b9cf5bd2526898b2004a3bbee8b0 (patch)
treeb7a35299b288c0c84f0146fa51a0798d84458c3b /tests/test_spplus.py
parentcdd3295e398be15d4327c4bd5309b2dfd194fd23 (diff)
downloadeopayment-e8f12c5d1fd7b9cf5bd2526898b2004a3bbee8b0.zip
eopayment-e8f12c5d1fd7b9cf5bd2526898b2004a3bbee8b0.tar.gz
eopayment-e8f12c5d1fd7b9cf5bd2526898b2004a3bbee8b0.tar.bz2
add a message in ResponseErrors (#25773)v1.26
Diffstat (limited to 'tests/test_spplus.py')
-rw-r--r--tests/test_spplus.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_spplus.py b/tests/test_spplus.py
index a1a2058..ba047e9 100644
--- a/tests/test_spplus.py
+++ b/tests/test_spplus.py
@@ -1,5 +1,6 @@
from unittest import TestCase
import eopayment.spplus as spplus
+from eopayment import ResponseError
class SPPlustTest(TestCase):
ntkey = b'58 6d fc 9c 34 91 9b 86 3f ' \
@@ -14,3 +15,6 @@ class SPPlustTest(TestCase):
for query, result in self.tests:
self.assertEqual(spplus.sign_ntkey_query(self.ntkey, query).lower(), result)
+
+ with self.assertRaisesRegexp(ResponseError, 'missing reference, etat or refsfp'):
+ payment.response('foo=bar')