def test_corrupted_metadata(self):
        file_id = self.fs.create(FILE_CONTENT, 'file.txt')
        f = self.fs.get(file_id)

        with open(f._metadata_path, 'w') as mdf:
            mdf.write('NOT JSON')

        did_detect_corrupted_metadata = False
        try:
            f = self.fs.get(file_id)
        except __HOLE__:
            did_detect_corrupted_metadata = True

        assert did_detect_corrupted_metadata
dataset/ETHPy150Open amol-/depot/tests/test_local_storage.py/TestLocalFileStorage.test_corrupted_metadata