libcloud.test.storage package
Submodules
libcloud.test.storage.test_atmos module
-
class libcloud.test.storage.test_atmos.AtmosMockHttp(*args, **kwargs)[source]
Bases: libcloud.test.StorageMockHttp, unittest.case.TestCase
-
fixtures = <libcloud.test.file_fixtures.StorageFileFixtures object at 0x7fd87e7e37d0>
-
request(method, url, body=None, headers=None, raw=False)[source]
-
runTest()[source]
-
upload_created = False
-
upload_stream_created = False
-
class libcloud.test.storage.test_atmos.AtmosMockRawResponse(connection)[source]
Bases: libcloud.test.MockRawResponse
-
fixtures = <libcloud.test.file_fixtures.StorageFileFixtures object at 0x7fd87d862f90>
-
class libcloud.test.storage.test_atmos.AtmosTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
setUp()[source]
-
tearDown()[source]
-
test_create_container_already_exists()[source]
-
test_create_container_success()[source]
-
test_delete_container_not_empty()[source]
-
test_delete_container_not_found()[source]
-
test_delete_container_success()[source]
-
test_delete_object_escaped_success()[source]
-
test_delete_object_not_found()[source]
-
test_delete_object_success()[source]
-
test_download_object_as_stream()[source]
-
test_download_object_as_stream_escaped()[source]
-
test_download_object_escaped_success()[source]
-
test_download_object_success()[source]
-
test_download_object_success_not_found()[source]
-
test_get_container()[source]
-
test_get_container_escaped()[source]
-
test_get_container_not_found()[source]
-
test_get_object_escaped()[source]
-
test_get_object_not_found()[source]
-
test_get_object_success()[source]
-
test_list_container_objects()[source]
-
test_list_containers()[source]
-
test_signature_algorithm()[source]
-
test_upload_object_error()[source]
-
test_upload_object_no_content_type()[source]
-
test_upload_object_nonexistent_file()[source]
-
test_upload_object_success()[source]
-
test_upload_object_via_stream_existing_object()[source]
-
test_upload_object_via_stream_new_object()[source]
-
test_upload_object_via_stream_no_content_type()[source]
libcloud.test.storage.test_azure_blobs module
libcloud.test.storage.test_base module
-
class libcloud.test.storage.test_base.BaseStorageTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
setUp()[source]
-
test__get_hash_function()[source]
-
test__upload_data()[source]
-
test__upload_object_iterator_must_have_next_method()[source]
-
test_upload_no_content_type_supplied_or_detected()[source]
-
test_upload_zero_bytes_long_object_via_stream()[source]
libcloud.test.storage.test_cloudfiles module
-
class libcloud.test.storage.test_cloudfiles.CloudFilesDeprecatedUKTests(methodName='runTest')[source]
Bases: libcloud.test.storage.test_cloudfiles.CloudFilesTests
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_klass
alias of CloudFilesUKStorageDriver
-
region = 'lon'
-
class libcloud.test.storage.test_cloudfiles.CloudFilesDeprecatedUSTests(methodName='runTest')[source]
Bases: libcloud.test.storage.test_cloudfiles.CloudFilesTests
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_klass
alias of CloudFilesUSStorageDriver
-
region = 'ord'
-
class libcloud.test.storage.test_cloudfiles.CloudFilesMockHttp(*args, **kwargs)[source]
Bases: libcloud.test.StorageMockHttp, libcloud.test.MockHttpTestCase
-
fixtures = <libcloud.test.file_fixtures.StorageFileFixtures object at 0x7fd87d884a90>
-
class libcloud.test.storage.test_cloudfiles.CloudFilesMockRawResponse(connection)[source]
Bases: libcloud.test.MockRawResponse
-
fixtures = <libcloud.test.file_fixtures.StorageFileFixtures object at 0x7fd87da11410>
-
class libcloud.test.storage.test_cloudfiles.CloudFilesTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
-
driver_args = ('dummy', 'dummy')
-
driver_klass
alias of CloudFilesStorageDriver
-
driver_kwargs = {}
-
region = 'ord'
-
setUp()[source]
-
tearDown()[source]
-
test__upload_object_manifest()[source]
-
test__upload_object_manifest_wrong_hash()[source]
-
test__upload_object_part()[source]
-
test_create_container_already_exists()[source]
-
test_create_container_invalid_name_slashes_in_name()[source]
-
test_create_container_invalid_name_too_long()[source]
-
test_create_container_put_object_name_encoding()[source]
-
test_create_container_success()[source]
-
test_delete_container_not_empty()[source]
-
test_delete_container_not_found()[source]
-
test_delete_container_success()[source]
-
test_delete_object_not_found()[source]
-
test_delete_object_success()[source]
-
test_download_object_as_stream()[source]
-
test_download_object_invalid_file_size()[source]
-
test_download_object_success()[source]
-
test_download_object_success_not_found()[source]
-
test_ex_enable_static_website()[source]
-
test_ex_force_service_region()[source]
-
test_ex_get_meta_data()[source]
-
test_ex_get_object_temp_url(*args, **keywargs)[source]
-
test_ex_get_object_temp_url_no_key_raises_key_error()[source]
-
test_ex_multipart_upload_object_for_small_files(*args, **keywargs)[source]
-
test_ex_multipart_upload_object_success()[source]
-
test_ex_purge_object_from_cdn()[source]
-
test_ex_purge_object_from_cdn_with_email()[source]
-
test_ex_set_account_metadata_temp_url_key()[source]
-
test_ex_set_error_page()[source]
-
test_force_auth_token_kwargs()[source]
-
test_force_auth_url_kwargs()[source]
-
test_get_container()[source]
-
test_get_container_not_found()[source]
-
test_get_object_not_found()[source]
-
test_get_object_object_name_encoding()[source]
-
test_get_object_success()[source]
-
test_invalid_ex_force_service_region()[source]
-
test_invalid_json_throws_exception()[source]
-
test_list_container_object_name_encoding()[source]
-
test_list_container_objects()[source]
-
test_list_container_objects_iterator()[source]
-
test_list_container_objects_with_prefix()[source]
-
test_list_containers()[source]
-
test_service_catalog()[source]
-
test_upload_object_error()[source]
-
test_upload_object_inexistent_file()[source]
-
test_upload_object_invalid_hash()[source]
-
test_upload_object_no_content_type()[source]
-
test_upload_object_success()[source]
-
test_upload_object_via_stream()[source]
-
test_upload_object_zero_size_object()[source]
libcloud.test.storage.test_google_storage module
libcloud.test.storage.test_local module
-
class libcloud.test.storage.test_local.LocalTests(methodName='runTest')[source]
Bases: unittest.case.TestCase
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name.
libcloud.test.storage.test_s3 module
Module contents