def test_werkzeug_upload():
    try:
        import werkzeug
    except __HOLE__:
        return
    storage = app_storage()
    object_name = "my-txt-hello.txt"
    filepath = CWD + "/data/hello.txt"
    file = None
    with open(filepath, 'rb') as fp:
        file = werkzeug.datastructures.FileStorage(fp)
        file.filename = object_name
        o = storage.upload(file, overwrite=True)
        assert isinstance(o, Object)
        assert o.name == object_name
dataset/ETHPy150Open mardix/flask-cloudy/tests/test_cloudy.py/test_werkzeug_upload