def METHOD_NAME(
    upload, theme, hashable_file
):
    with open(hashable_file) as fp:
        upload(theme, fp)
    original_media = theme.media.get()
    with open(os.path.join(TESTS_DIR, "css", "test-changed.css")) as fp:
        size = len(fp.read())
        fp.seek(0)
        upload(
            theme, UploadedFile(fp, name="test.css", content_type="text/css", size=size)
        )
    updated_media = theme.media.last()
    assert updated_media.name == original_media.name
    assert updated_media.hash != original_media.hash
    assert theme.media.count() == 1