evennia.contrib.base_systems.awsstorage.tests

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

Bases: django.test.testcases.TestCase

setUp()[source]

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

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

Bases: evennia.contrib.base_systems.awsstorage.tests.S3Boto3TestCase

test_clean_name()[source]

Test the base case of _clean_name

test_clean_name_normalize()[source]

Test the normalization of _clean_name

test_clean_name_trailing_slash()[source]

Test the _clean_name when the path has a trailing slash

test_clean_name_windows()[source]

Test the _clean_name when the path has a trailing slash

test_pickle_with_bucket()[source]

Test that the storage can be pickled with a bucket attached

test_pickle_without_bucket()[source]

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

test_storage_url_slashes()[source]

Test URL generation.

test_storage_save()[source]

Test saving a file

test_storage_save_with_acl()[source]

Test saving a file with user defined ACL.

test_content_type()[source]

Test saving a file with a None content type.

test_storage_save_gzipped()[source]

Test saving a gzipped file

test_storage_save_gzip()[source]

Test saving a file with gzip enabled.

test_storage_save_gzip_twice()[source]

Test saving the same file content twice with gzip enabled.

test_compress_content_len()[source]

Test that file returned by _compress_content() is readable.

test_storage_open_write()[source]

Test opening a file in write mode

test_storage_open_no_write()[source]

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()[source]

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

test_storage_write_beyond_buffer_size()[source]

Test writing content that exceeds the buffer size

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