def METHOD_NAME(self):
    file_path = self.parent / "test"
    created = path.get_or_create_file(str(file_path), content="foobaræøå")
    assert created.read_bytes() == b"foobar\xc3\xa6\xc3\xb8\xc3\xa5"