def test_get_payment_methods_invalid(self): globee_payment = GlobeePayment() with self.assertRaises(ValidationError): globee_payment.get_payment_methods()
def test_get_payment_methods_valid(self): globee_payment = GlobeePayment() response = globee_payment.get_payment_methods() self.assertIsInstance(response, list)