def METHOD_NAME(data, tmpdir):
    # Given
    video = data['video']
    release_name = data['release_name']
    name, ext = os.path.splitext(os.path.basename(video.name))
    video.name = '{path}/{name}{ext}'.format(path=tmpdir.strpath, name=name, ext=ext)
    release_file = tmpdir.ensure('{name}.ext'.format(name=name))
    release_file.write(release_name)
    release_file = tmpdir.ensure('{name}.ttt'.format(name=name))
    release_file.write(data['another_release_name'])
    expected = data['release_properties']
    # When
    sut.refine(video, extension='ext')
    # Then
    assert expected == _to_properties(video)