def test_delete_dir(storage):
    storage.push_directory('sample_dir', overwrite_existing=True)
    assert (len(storage.list_objects('sample_dir')) == 2)
    deleted_objects = storage.delete('sample_dir')
    assert (len(deleted_objects) == 2)
    assert (len(storage.list_objects('sample_dir')) == 0)
def test_delete_dir(storage):
    storage.push_directory('sample_dir', overwrite_existing=True)
    assert (len(storage.list_objects('sample_dir')) == 2)
    deleted_objects = storage.delete('sample_dir')
    assert (len(deleted_objects) == 2)
    assert (len(storage.list_objects('sample_dir')) == 0)