test_customer.py 文件源码

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

项目:paystack-python 作者: andela-sjames 项目源码 文件源码
def test_get(self):
        """Function defined to test Customer get method."""
        httpretty.register_uri(
            httpretty.GET,
            "https://api.paystack.co/customer/4013",
            content_type='text/json',
            body='{"status": true, "contributors": true}',
            status=201,
        )

        response = Customer.get(customer_id=4013)
        self.assertEqual(response['status'], True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号