summaryrefslogtreecommitdiffstats
path: root/tests/test_paybox.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_paybox.py')
-rw-r--r--tests/test_paybox.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_paybox.py b/tests/test_paybox.py
index bedcb69..abea656 100644
--- a/tests/test_paybox.py
+++ b/tests/test_paybox.py
@@ -92,6 +92,9 @@ class PayboxTests(TestCase):
response = backend.response(urllib.urlencode(data))
self.assertEqual(response.order_id, order_id)
+ with self.assertRaisesRegexp(eopayment.ResponseError, 'missing erreur or reference'):
+ backend.response('foo=bar')
+
def test_rsa_signature_validation(self):
pkey = '''-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUgYufHuheMztK1LhQSG6xsOzb