summaryrefslogtreecommitdiffstats
path: root/tests/test_dummy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_dummy.py')
-rw-r--r--tests/test_dummy.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_dummy.py b/tests/test_dummy.py
index caac610..1725673 100644
--- a/tests/test_dummy.py
+++ b/tests/test_dummy.py
@@ -1,4 +1,5 @@
import eopayment
+import pytest
def test_dummy():
options = {
@@ -17,3 +18,7 @@ def test_dummy():
assert r.signed
assert r.transaction_id == '6Tfw2e1bPyYnz7CedZqvdHt7T9XX6T'
assert r.return_content == 'signature ok'
+
+ data = {'foo': 'bar'}
+ with pytest.raises(eopayment.ResponseError, match='missing transaction_id'):
+ p.response('foo=bar')