def test_to_xdr_amount_raise(self, origin_amount, exception, reason): with pytest.raises(exception, match=reason): Operation.to_xdr_amount(origin_amount)
def test_to_xdr_amount(self, origin_amount, expect_value): assert Operation.to_xdr_amount(origin_amount) == expect_value