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>¶
-
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>¶
-
-
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
()¶
-
tearDown
()¶
-
test_create_container_already_exists
()¶
-
test_create_container_success
()¶
-
test_delete_container_not_empty
()¶
-
test_delete_container_not_found
()¶
-
test_delete_container_success
()¶
-
test_delete_object_escaped_success
()¶
-
test_delete_object_not_found
()¶
-
test_delete_object_success
()¶
-
test_download_object_as_stream
()¶
-
test_download_object_as_stream_escaped
()¶
-
test_download_object_escaped_success
()¶
-
test_download_object_success
()¶
-
test_download_object_success_not_found
()¶
-
test_get_container
()¶
-
test_get_container_escaped
()¶
-
test_get_container_not_found
()¶
-
test_get_object_escaped
()¶
-
test_get_object_not_found
()¶
-
test_get_object_success
()¶
-
test_list_container_objects
()¶
-
test_list_containers
()¶
-
test_signature_algorithm
()¶
-
test_upload_object_error
()¶
-
test_upload_object_no_content_type
()¶
-
test_upload_object_nonexistent_file
()¶
-
test_upload_object_success
()¶
-
test_upload_object_via_stream_existing_object
()¶
-
test_upload_object_via_stream_new_object
()¶
-
test_upload_object_via_stream_no_content_type
()¶
-
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
()¶
-
test__get_hash_function
()¶
-
test__upload_data
()¶
-
test__upload_object_iterator_must_have_next_method
()¶
-
test_upload_no_content_type_supplied_or_detected
()¶
-
test_upload_zero_bytes_long_object_via_stream
()¶
-
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
-
base_headers
= {'content-type': 'application/json; charset=UTF-8'}¶
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>¶
-
-
class
libcloud.test.storage.test_cloudfiles.
CloudFilesMockRawResponse
(connection)[source]¶ Bases:
libcloud.test.MockRawResponse
-
base_headers
= {'content-type': 'application/json; charset=UTF-8'}¶
-
fixtures
= <libcloud.test.file_fixtures.StorageFileFixtures object>¶
-
-
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'¶
-