MCPcopy 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
36def 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_dictMethod · 0.95
TokenClass · 0.90
from_dictMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…