Example #1
0
def test_get_file_extension():
    filename = "hello.jpg"
    assert get_file_extension(filename) == "jpg"
Example #2
0
def test_storage_upload_append_extension():
    storage = app_storage()
    object_name = "my-txt-hello-hello"
    o = storage.upload(CWD + "/data/hello.txt", object_name, overwrite=True)
    assert get_file_extension(o.name) == "txt"