def test_update_payment_invalid_payment_id_is_none(self): globee_payment = GlobeePayment() custom_payment_id = "NEWID" custom_store_reference = "NEWSTOREREF" updated_data = { "custom_payment_id": custom_payment_id, "custom_store_reference": custom_store_reference, } globee_payment.payment_data = updated_data globee_payment.payment_id = None with self.assertRaises(ValidationError): globee_payment.update_payment_request()
def test_update_payment_invalid_payment_data_is_none(self): globee_payment = GlobeePayment() globee_payment.payment_data = None globee_payment.payment_id = "SOME KEY" with self.assertRaises(ValidationError): globee_payment.update_payment_request()