Changeset 44
- Timestamp:
- 04/15/08 22:15:58 (4 years ago)
- Location:
- trunk/fpys
- Files:
-
- 3 modified
-
client.py (modified) (1 diff)
-
tests/client_test.py (modified) (1 diff)
-
tests/wsgi_responder.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fpys/client.py
r43 r44 109 109 # Hackish at best... 110 110 root_tag = document.getroot().tag 111 for tag_name in ["PayResponse", "RefundResponse", "ReserveResponse", "SettleResponse"]: 111 for tag_name in ["PayResponse", "RefundResponse", "ReserveResponse", 112 "RetryTransactionResponse", "SettleResponse"]: 112 113 if self.success and root_tag.find(tag_name) >= 0: 113 114 self.transaction = TransactionResponse() -
trunk/fpys/tests/client_test.py
r43 r44 201 201 assert response.transaction.id == "134OLF7MHB2L4V9T54RHADQ9FCK5NLVZHDC" 202 202 203 # def test_retry(): 204 # response = fps_client.retryTransaction("123") 205 # assert response.success == True 203 def test_retry(): 204 response = fps_client.retryTransaction("123") 205 assert response.success == True 206 assert response.transaction.status == "Initiated" 206 207 207 208 def test_settle_over_amount(): -
trunk/fpys/tests/wsgi_responder.py
r43 r44 88 88 89 89 def RetryTransaction(self, environ): 90 response = """ """90 response = """<ns0:RetryTransactionResponse xmlns:ns0="http://fps.amazonaws.com/doc/2007-01-08/"><ns0:TransactionResponse><TransactionId>134OLF7MHB2L4V9T54RHADQ9FCK5NLVZHDC</TransactionId><Status>Initiated</Status></ns0:TransactionResponse><Status>Success</Status><RequestId>a412e705-389e-4579-ad78-eee5bb611467:0</RequestId></ns0:RetryTransactionResponse>""" 91 91 return [response] 92 92
