Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/python-hipay-HEAD/tests.py   python-hipay(Download)
        data = [{'shippingAmount':1.50, 'insuranceAmount':2.00, 'fixedCostAmount':2.25, 'fixedCostTax':taxes['fixedCostTax'], 'insuranceTax': taxes['insuranceTax'], 'shippingTax':taxes['shippingTax'], 'orderTitle':'Mon ordre', 'orderInfo':'Box', 'orderCategory':91, 'affiliate':af}]
        order.setOrders(data)
        pay = hipay.HiPay(s)        
        pay.SimplePayment(order, pr)
        self.assertEqual(hashlib.sha224(ET.tostring(pay.asTree().getroot())).hexdigest(),
        data = [{'shippingAmount':1.50, 'insuranceAmount':2.00, 'fixedCostAmount':2.25, 'fixedCostTax':taxes['fixedCostTax'], 'insuranceTax': taxes['insuranceTax'], 'shippingTax':taxes['shippingTax'], 'orderTitle':'Mon ordre', 'orderInfo':'Box', 'orderCategory':91}]
        order.setOrders(data)
        pay = hipay.HiPay(s)        
        pay.SimplePayment(order, pr)
        root = fromstring(ET.tostring(pay.asTree().getroot()), self.parser)
        inst.setInstallements(inst_data)
 
        pay = hipay.HiPay(s)        
        pay.MultiplePayment(order, inst)
        self.assertEqual(hashlib.sha224(ET.tostring(pay.asTree().getroot())).hexdigest(),
        inst.setInstallements(inst_data)
 
        pay = hipay.HiPay(s)        
        pay.MultiplePayment(order, inst)
        root = fromstring(ET.tostring(pay.asTree().getroot()), self.parser)