summaryrefslogtreecommitdiffstats
path: root/eopayment
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-07-25 09:04:54 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-26 14:26:03 (GMT)
commit12e836b6c7d33464a22930d043bf88ff073888f4 (patch)
treec189ec34493011d242fd966f355406678681c42e /eopayment
parent887832bc5fb442ef887e8690c5353bf833854c32 (diff)
downloadeopayment-12e836b6c7d33464a22930d043bf88ff073888f4.zip
eopayment-12e836b6c7d33464a22930d043bf88ff073888f4.tar.gz
eopayment-12e836b6c7d33464a22930d043bf88ff073888f4.tar.bz2
add basic unit test for tipi
Diffstat (limited to 'eopayment')
-rw-r--r--eopayment/tipi.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/eopayment/tipi.py b/eopayment/tipi.py
index 1eb73de..4e18c39 100644
--- a/eopayment/tipi.py
+++ b/eopayment/tipi.py
@@ -180,14 +180,3 @@ class Payment(PaymentCommon):
bank_data=fields,
transaction_id=transaction_id,
test=test)
-
-if __name__ == '__main__':
- p = Payment({'numcli': '12345'})
- print(p.request(amount=Decimal('123.12'),
- exer=9999,
- refdet=999900000000999999,
- objet='tout a fait',
- email='info@entrouvert.com',
- urlcl='http://example.com/tipi/test',
- saisie='T'))
- print(p.response('objet=tout+a+fait&montant=12312&saisie=T&mel=info%40entrouvert.com&numcli=12345&exer=9999&refdet=999900000000999999&resultrans=P'))