Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/executablebooks/markdown-it-py
/ test_serialization
Function
test_serialization
tests/test_api/test_token.py:36–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
35
36
def
test_serialization():
37
token = Token(
"name"
,
"tag"
, 0, children=[Token(
"other"
,
"tag2"
, 0)])
38
assert token == Token.from_dict(token.as_dict())
Callers
nothing calls this directly
Calls
3
as_dict
Method · 0.95
Token
Class · 0.90
from_dict
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…