def METHOD_NAME(upload, theme, svg_file):
    with open(svg_file) as fp:
        upload(theme, fp)
    media = theme.media.last()
    expected_filename = str(svg_file).split("/")[-1]
    assert media.name == expected_filename