(self)
| 23 | self.assertEqual(self.test_file.read_text(), "LINE 1\nline 2\nline 2\nline 3") |
| 24 | |
| 25 | def test_collision(self): |
| 26 | res = tool_patch_file(str(self.test_file), "line 2", "LINE 2") |
| 27 | self.assertIn("[ERROR] String found 2 times", res) |
| 28 | |
| 29 | def test_not_found(self): |
| 30 | res = tool_patch_file(str(self.test_file), "missing", "whatever") |
nothing calls this directly
no test coverage detected