evennia.contrib.base_systems.awsstorage.tests

class evennia.contrib.base_systems.awsstorage.tests.S3Boto3TestCase(methodName='runTest')[源代码]

基类:django.test.testcases.TestCase

setUp()[源代码]

Hook method for setting up the test fixture before exercising it.

class evennia.contrib.base_systems.awsstorage.tests.S3Boto3StorageTests(methodName='runTest')[源代码]

基类:evennia.contrib.base_systems.awsstorage.tests.S3Boto3TestCase

test_clean_name()[源代码]

Test the base case of _clean_name

test_clean_name_normalize()[源代码]

Test the normalization of _clean_name

test_clean_name_trailing_slash()[源代码]

Test the _clean_name when the path has a trailing slash

test_clean_name_windows()[源代码]

Test the _clean_name when the path has a trailing slash

test_pickle_with_bucket()[源代码]

Test that the storage can be pickled with a bucket attached

test_pickle_without_bucket()[源代码]

Test that the storage can be pickled, without a bucket instance

test_storage_url_slashes()[源代码]

Test URL generation.

test_storage_save()[源代码]

Test saving a file

test_storage_save_with_acl()[源代码]

Test saving a file with user defined ACL.

test_content_type()[源代码]

Test saving a file with a None content type.

test_storage_save_gzipped()[源代码]

Test saving a gzipped file

test_storage_save_gzip()[源代码]

Test saving a file with gzip enabled.

test_storage_save_gzip_twice()[源代码]

Test saving the same file content twice with gzip enabled.

test_compress_content_len()[源代码]

Test that file returned by _compress_content() is readable.

test_storage_open_write()[源代码]

Test opening a file in write mode

test_storage_open_no_write()[源代码]

Test opening file in write mode and closing without writing.

A file should be created as by obj.put(…).

test_storage_open_no_overwrite_existing()[源代码]

Test opening an existing file in write mode and closing without writing.

test_storage_write_beyond_buffer_size()[源代码]

Test writing content that exceeds the buffer size

test_auto_creating_bucket()[源代码]
test_auto_creating_bucket_with_acl()[源代码]
test_storage_exists()[源代码]
test_storage_exists_false()[源代码]
test_storage_exists_doesnt_create_bucket()[源代码]
test_storage_delete()[源代码]
test_storage_listdir_base()[源代码]
test_storage_listdir_subdir()[源代码]
test_storage_size()[源代码]
test_storage_mtime()[源代码]
test_storage_url()[源代码]
test_generated_url_is_encoded()[源代码]
test_special_characters()[源代码]
test_strip_signing_parameters()[源代码]
test_connection_threading()[源代码]
test_location_leading_slash()[源代码]
test_override_class_variable()[源代码]
test_override_init_argument()[源代码]