Skip to content

Commit 73e1958

Browse files
author
krgupta
committed
reforked and added getsubscription test
1 parent 1ac42f7 commit 73e1958

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/testssample.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ def testCreateSubscription(self):
5353
response = arbcreatesubscriptioncontroller.getresponse()
5454
self.assertIsNotNone(response.subscriptionId)
5555
self.assertEquals('Ok', response.messages.resultCode)
56+
57+
def testgetsubscription(self):
58+
59+
getSubscription = apicontractsv1.ARBGetSubscriptionRequest()
60+
getSubscription.merchantAuthentication = self.merchantAuthentication
61+
getSubscription.subscriptionId = "2952220"
62+
getSubscriptionController = ARBGetSubscriptionController(getSubscription)
63+
getSubscriptionController.execute()
64+
response = getSubscriptionController.getresponse()
65+
self.assertIsNotNone(response.subscription.name)
66+
self.assertEquals('Ok', response.messages.resultCode)
5667

5768
def testcancelSubscription(self):
5869

0 commit comments

Comments
 (0)