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