def METHOD_NAME(self, path_type, tmpdir):
    path = tmpdir.join('test.bare')
    if path_type:
        path = path_type(path)
    name = str(path)
    with self.file_opener(path, 'wb') as fw:
        assert isinstance(fw, BareFileWriter)
        assert fw.fh_raw.name == name
        fw.write(b'abcde')
    with self.file_opener(path, 'rb') as fr:
        assert isinstance(fr, BareFileReader)
        assert fr.fh_raw.name == name
        assert fr.read() == b'abcde'