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

Method test_from_multiline

test/test_box.py:860–866  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

858 assert count == 3
859
860 def test_from_multiline(self):
861 content = '{"a": 2}\n{"b": 3}\r\n \n'
862 with open(tmp_json_file, "w") as f:
863 f.write(content)
864
865 a = BoxList.from_json(filename=tmp_json_file, multiline=True)
866 assert a[1].b == 3
867
868 def test_duplicate_errors(self):
869 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected