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