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

Method test_from_multiline

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

Source from the content-addressed store, hash-verified

809 assert count == 3
810
811 def test_from_multiline(self):
812 content = '{"a": 2}\n{"b": 3}\r\n \n'
813 with open(tmp_json_file, "w") as f:
814 f.write(content)
815
816 a = BoxList.from_json(filename=tmp_json_file, multiline=True)
817 assert a[1].b == 3
818
819 def test_duplicate_errors(self):
820 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected