summaryrefslogtreecommitdiffstats
path: root/tests/test_sips2.py
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-10-13 14:59:10 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-10-21 14:09:00 (GMT)
commit0432124e0a93c25a6217c265fabd436c5e4ba9cb (patch)
treeff7c0bd8f2025bd1b637d3ea37bb8707ebd7c68c /tests/test_sips2.py
parentd6b80acd0241d31788abc9240ebc65b9f97e6335 (diff)
downloadeopayment-0432124e0a93c25a6217c265fabd436c5e4ba9cb.zip
eopayment-0432124e0a93c25a6217c265fabd436c5e4ba9cb.tar.gz
eopayment-0432124e0a93c25a6217c265fabd436c5e4ba9cb.tar.bz2
tests: make sure API handles unicode input params (#13592)v1.15
Diffstat (limited to 'tests/test_sips2.py')
-rw-r--r--tests/test_sips2.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_sips2.py b/tests/test_sips2.py
index 53ec055..d76a6be 100644
--- a/tests/test_sips2.py
+++ b/tests/test_sips2.py
@@ -1,14 +1,16 @@
-import pytest
-import pprint
+# -*- coding: utf-8 -*-
import eopayment
def test_build_request():
backend = eopayment.Payment('sips2', {})
- assert backend.request(amount='12')
+ transaction, f, form = backend.request(amount=u'12', last_name=u'Foo',
+ first_name=u'Félix')
+ data = [f for f in form.fields if f['name'] == 'Data']
+ assert u'Félix' in data[0]['value']
def test_options():
- payment = eopayment.Payment('sips2', {'capture_mode': 'VALIDATION'})
+ payment = eopayment.Payment('sips2', {'capture_mode': u'VALIDATION'})
assert payment.backend.get_data()['captureMode'] == 'VALIDATION'
payment = eopayment.Payment('sips2', {})