geonode.storage.tests

Classes

TestDropboxStorageManager

TestGoogleStorageManager

TestAwsStorageManager

TestStorageManager

TestDataRetriever

Module Contents

class geonode.storage.tests.TestDropboxStorageManager[source]

Bases: django.test.testcases.SimpleTestCase

setUp()[source]
test_dropbox_deleted(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_exists(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_listdir(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_open(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_path(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_save(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

test_dropbox_size(dbx)[source]

Will test that the function returns the expected result and that the DropBoxStorage function as been called with the expected parameters

class geonode.storage.tests.TestGoogleStorageManager[source]

Bases: django.test.testcases.SimpleTestCase

setUp()[source]
test_google_deleted(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_exists(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_listdir(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_open(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_path()[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_save(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

test_google_size(gcs)[source]

Will test that the function returns the expected result and that the GoogleCloudStorage function as been called with the expected parameters

class geonode.storage.tests.TestAwsStorageManager[source]

Bases: django.test.testcases.SimpleTestCase

setUp()[source]
test_aws_deleted(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_exists(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_listdir(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_open(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_path(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_save(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

test_aws_size(aws)[source]

Will test that the function returns the expected result and that the AwsStorageManager function as been called with the expected parameters

class geonode.storage.tests.TestStorageManager[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

setUp()[source]
test_storage_manager_deleted(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_exists(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_listdir(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_open(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_path(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_save(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_size(strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_replace_files_list()[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_replace_single_file(path, strg)[source]

Will test that the function returns the expected result and that the StorageManager function as been called with the expected parameters

test_storage_manager_copy()[source]

Test that the copy works as expected and the permissions are corerct

class geonode.storage.tests.TestDataRetriever[source]

Bases: django.test.testcases.TestCase

classmethod setUpClass() None[source]
setUp()[source]
test_file_are_not_transfered_local()[source]
test_clone_remote_files_local()[source]
test_get_retrieved_paths_local()[source]
test_delete_retrieved_paths_local()[source]
test_file_are_not_transfered_remote()[source]
test_clone_remote_files_remote()[source]
test_get_retrieved_paths_remote()[source]
test_delete_retrieved_paths_remote()[source]
test_storage_manager_rmtree()[source]

Will test that the rmtree function works as expected

test_zip_file_should_correctly_recognize_main_extension_with_csv()[source]
test_zip_file_should_correctly_index_file_extensions()[source]
test_zip_file_should_correctly_recognize_main_extension_with_kmz()[source]
test_zip_file_should_correctly_recognize_main_extension_with_shp()[source]