def test_list_batch(self): Batch.list() Batch.list(LIST_BATCH_DATES) # Both start and end dates are required by the gateway when one is # provided self.assertRaises(AuthorizeResponseError, Batch.list, LIST_BATCH_DATES_START_ONLY)
def test_batch_details(self): Batch.details('2520288') self.assertRaises(AuthorizeResponseError, Batch.details, 'Bad batch ID')
def test_batch_details(self): Batch.details("2520288") self.assertRaises(AuthorizeResponseError, Batch.details, "Bad batch ID")
def test_list_batch(self): Batch.list() Batch.list(LIST_BATCH_DATES) Batch.list(LIST_BATCH_DATES_START_ONLY)