(self)
| 28 | self.assertEqual(actual, expected) |
| 29 | |
| 30 | def test_incorrect_load(self): |
| 31 | content = "one=1" |
| 32 | with tempfile.TemporaryDirectory() as tmp_dir_path: |
| 33 | file_path = Path(tmp_dir_path) / "test.toml" |
| 34 | file_path.write_text(content) |
| 35 | |
| 36 | with open(file_path, "r") as txt_f: |
| 37 | with self.assertRaises(TypeError): |
| 38 | tomllib.load(txt_f) # type: ignore[arg-type] |
| 39 | |
| 40 | def test_parse_float(self): |
| 41 | doc = """ |
nothing calls this directly
no test coverage detected