Exemplo n.º 1
0
 def test_dollar_phone_api_authorization_fail(self):
     self.fail_client = dollar_phone_api_authorization('', '')
     self.assertNotIsInstance(self.fail_client, Client)
     with self.assertRaisesRegexp(Exception,
                             'Failed to initialize dollarphone api, please '
                             'verify your credentials'):
         api.dollar_phone_api_authorization('', '')
Exemplo n.º 2
0
 def setUp(self):
     self.success_client = dollar_phone_api_authorization('twwzalmenSYS', 'twz%432API')
     self.form_fields_pin = {
             'username': '******',
             'password': '******',
             'Amount': decimal.Decimal(29.95),
             'OfferingId': '30084223',
             'ProviderId': 0,
             'transaction': '369369369'
     }
     self.form_fields_rtr = {
             'username': '******',
             'password': '******',
             'PhoneNumber': '525553760001',
             'Amount': decimal.Decimal(10.00),
             'OfferingId': '30027940',
             'ProviderId': 0,
             'transaction': '369369369'
     }