(self)
| 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): |