示例#1
0
 def test_getCredit_credit(self):
     processor =  SMSProcessor ()
     retcode = processor.getCredit (WebServiceTests.username, WebServiceTests.password, 'AccessServeralPurchases')
     self.assertEqual (retcode, 1907)
示例#2
0
 def test_getCredit_wrong_password (self):
     processor =  SMSProcessor ()
     retcode = processor.getCredit (WebServiceTests.wrong_username, WebServiceTests.wrong_password, 'AccessNoPurchase')
     self.assertEqual (retcode, Customer.WRONG_USERNAME_OR_PASSWORD)