def METHOD_NAME(self):
    conflicting_file = self.parent / "test"
    conflicting_file.touch()
    dir_path = self.parent / "test"
    with pytest.raises(OSError):
        path.get_or_create_dir(str(dir_path))