summaryrefslogtreecommitdiffstats
path: root/tests/test_sips2.py
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-10-12 13:35:23 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-11-12 14:18:10 (GMT)
commit980ab967ba9eb3ddbb67f10b0cc574c4a12bdb47 (patch)
treea71290ca48bb82c0c597df9034d4de0496ec059a /tests/test_sips2.py
parentd383315b34639421d6ef29dcdb603c41f07dde28 (diff)
downloadeopayment-980ab967ba9eb3ddbb67f10b0cc574c4a12bdb47.zip
eopayment-980ab967ba9eb3ddbb67f10b0cc574c4a12bdb47.tar.gz
eopayment-980ab967ba9eb3ddbb67f10b0cc574c4a12bdb47.tar.bz2
allow arbitrary date for deferred payment (#26992)
Diffstat (limited to 'tests/test_sips2.py')
-rw-r--r--tests/test_sips2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_sips2.py b/tests/test_sips2.py
index 65e63f1..563c75b 100644
--- a/tests/test_sips2.py
+++ b/tests/test_sips2.py
@@ -19,6 +19,11 @@ def test_build_request():
data = [f for f in form.fields if f['name'] == 'Data']
assert 'statementReference=foobar' in data[0]['value']
+ transaction, f, form = backend.request(amount=u'12', info1='foobar', capture_day=u'1')
+ data = [f for f in form.fields if f['name'] == 'Data']
+ assert 'captureDay=1' in data[0]['value']
+
+
def test_options():
payment = eopayment.Payment('sips2', {'capture_mode': u'VALIDATION'})
assert payment.backend.get_data()['captureMode'] == 'VALIDATION'