1
1
'''
2
- Created on Jul 13 , 2015
2
+ Created on Nov 16 , 2015
3
3
4
4
@author: krgupta
5
5
'''
19
19
from tests import apitestbase
20
20
from authorizenet .apicontrollers import *
21
21
import test
22
+ from authorizenet import utility
23
+
24
+ class test_ReadProperty (apitestbase .ApiTestBase ):
25
+ def testPropertyFromFile (self ):
26
+ login = utility .helper .getproperty ("api_login_id" )
27
+ transactionkey = utility .helper .getproperty ("transaction_key" )
28
+ self .assertIsNotNone (login )
29
+ self .assertIsNotNone (transactionkey )
22
30
23
31
class test_TransactionReportingUnitTest (apitestbase .ApiTestBase ):
24
-
32
+ '''
25
33
def testGetTransactionDetails(self):
26
34
27
35
gettransactiondetailsrequest = apicontractsv1.getTransactionDetailsRequest()
@@ -31,7 +39,7 @@ def testGetTransactionDetails(self):
31
39
gettransactiondetailscontroller.execute()
32
40
response = gettransactiondetailscontroller.getresponse()
33
41
self.assertEquals('Ok', response.messages.resultCode)
34
-
42
+ '''
35
43
class test_RecurringBillingTest (apitestbase .ApiTestBase ):
36
44
37
45
def testCreateSubscription (self ):
@@ -45,7 +53,7 @@ def testCreateSubscription(self):
45
53
response = arbcreatesubscriptioncontroller .getresponse ()
46
54
self .assertIsNotNone (response .subscriptionId )
47
55
self .assertEquals ('Ok' , response .messages .resultCode )
48
-
56
+ '''
49
57
def testcancelSubscription(self):
50
58
51
59
cancelsubscriptionrequest = apicontractsv1.ARBCancelSubscriptionRequest()
@@ -56,7 +64,7 @@ def testcancelSubscription(self):
56
64
cancelsubscriptioncontroller.execute()
57
65
response = cancelsubscriptioncontroller.getresponse()
58
66
self.assertEquals('Ok', response.messages.resultCode)
59
-
67
+ '''
60
68
class paymentTransactionUnitTest (apitestbase .ApiTestBase ):
61
69
62
70
def testauthCaputureTransaction (self ):
0 commit comments