summaryrefslogtreecommitdiffstats
path: root/tests/test_spplus.py
diff options
context:
space:
mode:
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')