def test_create(self):
"""Method defined to test plan creation."""
httpretty.register_uri(
httpretty.POST,
"https://api.paystack.co/plan",
content_type='text/json',
body='{"status": true, "contributors": true}',
status=201,
)
response = Plan.create(
name="John Doe", description="Payment plan for awesome people contributions",
amount=50000, interval="daily", send_invoices=True, )
self.assertTrue(response['status'])
评论列表
文章目录