summaryrefslogtreecommitdiffstats
path: root/tests/test_systempayv2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_systempayv2.py')
-rw-r--r--tests/test_systempayv2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_systempayv2.py b/tests/test_systempayv2.py
index c558bbf..bf00b6d 100644
--- a/tests/test_systempayv2.py
+++ b/tests/test_systempayv2.py
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
+import pytest
from six.moves.urllib import parse as urlparse
from eopayment.systempayv2 import Payment, VADS_CUST_FIRST_NAME, \
VADS_CUST_LAST_NAME, PAID
+from eopayment import ResponseError
PARAMS = {
'secret_test': u'1122334455667788',
@@ -43,3 +45,7 @@ def test_systempayv2():
'&signature=62a4fb6738ebadebf9cc720164bc70e47282d36e'
response = p.response(response_qs)
assert response.result == PAID
+
+ # bad response
+ with pytest.raises(ResponseError, match='missing signature, vads_ctx_mode or vads_auth_result'):
+ p.response('foo=bar')