def test_coreRespond():
httpretty.register_uri(httpretty.POST, 'https://localhost/callback', body="")
bc3cb.respond.respond("I'm trying it! ????", 'https://localhost/callback')
# The response will be encoded when we get it back from httpretty.
assert httpretty.last_request().body.decode('utf-8') == "content=I'm trying it! ????"
评论列表
文章目录