Changeset 12494 for main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests
- Timestamp:
- 19 Jan 2015, 13:25:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_paypal.py
r12454 r12494 1198 1198 assert exception.message == 'Payer PAYER-123 has no credit card.' 1199 1199 1200 @external_paypal_test 1201 def test_create_payment(self): 1202 # we can actually create payments 1203 service = PayPalCreditCardService() 1204 site = self.create_site() 1205 credit_card = self.get_credit_card() 1206 result = service.store_credit_card(credit_card) 1207 payer_id = result.payer_id 1208 payer = FakePayer() 1209 payer.payer_id = result.payer_id 1210 payment_item = FakePaymentItem() 1211 payment = service.create_payment( 1212 payer=payer, payment_item=payment_item) 1213 result = payment.create() 1214 assert result is True 1215 1200 1216 1201 1217 class FunctionalPaypalTests(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.