Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ ObjectWithHTML
Class
ObjectWithHTML
tests/test_json.py:341–343 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
339
340
def
test_html_method():
341
class
ObjectWithHTML:
342
def
__html__(self):
343
return
"<p>test</p>"
344
345
result = json.dumps(ObjectWithHTML())
346
assert result ==
'"<p>test</p>"'
Callers
1
test_html_method
Function · 0.85
Calls
no outgoing calls
Tested by
1
test_html_method
Function · 0.68