summaryrefslogtreecommitdiffstats
path: root/tests/test_tipi.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tipi.py')
-rw-r--r--tests/test_tipi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_tipi.py b/tests/test_tipi.py
index 2f8a665..f33bae5 100644
--- a/tests/test_tipi.py
+++ b/tests/test_tipi.py
@@ -1,6 +1,7 @@
from decimal import Decimal
from six.moves.urllib.parse import urlparse, parse_qs
import eopayment
+import pytest
def test_tipi():
p = eopayment.Payment('tipi', {'numcli': '12345'})
@@ -23,3 +24,6 @@ def test_tipi():
response = p.response('objet=tout+a+fait&montant=12312&saisie=T&mel=info%40entrouvert.com&numcli=12345&exer=9999&refdet=999900000000999999&resultrans=P')
assert response.signed # ...
assert response.result == eopayment.PAID
+
+ with pytest.raises(eopayment.ResponseError, match='missing refdet or resultrans'):
+ p.response('foo=bar')