def METHOD_NAME(data, tmpdir):
    # Given
    video = data['video']
    release_name = data['release_name']
    release_file = tmpdir.ensure('somefile.ext')
    release_file.write(release_name)
    expected = data['release_properties']
    # When
    sut.refine(video, release_file=release_file.strpath)
    # Then
    assert expected == _to_properties(video)