MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_toon_strings

Method test_toon_strings

test/test_box_list.py:164–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

162 data.to_csv(file)
163
164 def test_toon_strings(self):
165 bl = BoxList([{"item": 1, "name": "test"}, {"item": 2, "name": "two"}])
166 toon_str = bl.to_toon()
167 result = BoxList.from_toon(toon_str)
168 assert result[0]["item"] == 1
169 assert result[1]["name"] == "two"
170
171 def test_toon_files(self):
172 bl = BoxList([{"item": 1, "name": "test"}, {"item": 2, "name": "two"}])

Callers

nothing calls this directly

Calls 3

to_toonMethod · 0.95
BoxListClass · 0.90
from_toonMethod · 0.45

Tested by

no test coverage detected