test_billing.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:dj-paypal 作者: HearthSim 项目源码 文件源码
def test_sync_executed_billing_agreement():
    ba = get_fixture("rest.billingagreement.execute.json")
    inst, created = models.BillingAgreement.get_or_update_from_api_data(ba, always_sync=True)
    assert created
    assert inst.id == ba["id"]
    assert inst.last_payment_date == parse_date("2017-08-24T11:47:17Z")
    assert inst.calculate_end_of_period() == parse_date("2017-09-24T11:47:17Z")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号