Home | Trees | Indices | Help |
---|
|
1 import unittest 2 3 import gchecky.controller as gcontroller 4377 GCHECKOUT_VENDOR_ID = '552688368931861' 8 GCHECKOUT_MERCHANT_KEY = 'fse2vefEHSu8lQ2g-o6kZQ' 9 self.controller = gcontroller.Controller(GCHECKOUT_VENDOR_ID, 10 GCHECKOUT_MERCHANT_KEY, 11 True)13 self.controller.unarchive_order('457164429557231') 14 self.controller.archive_order('457164429557231')26 self.controller.refund_order('457164429557231', 0.04, 27 'Test refunding mechanism', 'Oh la la!')39 suite = unittest.TestSuite() 40 # suite.addTest(ControllerTestCase('testArchiving')) 41 # suite.addTest(ControllerTestCase('testMessaging')) 42 # suite.addTest(ControllerTestCase('testMerchantOrderNumber')) 43 # suite.addTest(ControllerTestCase('testTrackingData')) 44 45 suite.addTest(ControllerTestCase('testChargeOrder')) 46 # suite.addTest(ControllerTestCase('testRefundOrder')) 47 48 # suite.addTest(ControllerTestCase('testAuthorizeOrder')) 49 # suite.addTest(ControllerTestCase('testCancelOrder')) 50 suite.addTest(ControllerTestCase('testProcessOrder')) 51 suite.addTest(ControllerTestCase('testDeliverOrder')) 52 return suite53 54 if __name__ == '__main__': 55 unittest.main() 56
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sun Sep 7 23:26:47 2008 | http://epydoc.sourceforge.net |