(self)
| 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"}]) |