tests.generate_user_files_tests module#

Test generate_user_files script.

class tests.generate_user_files_tests.TestGenerateUserFiles(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Test generate_user_files.py functionality.

abstract_class = False#
dry = True#
test_ask_for_dir_change()[source]#

Test ask_for_dir_change function.

test_base_names()[source]#

Test basename constants.

test_config_test()[source]#

Test config text strings.

test_copy_sections_found()[source]#

Test copy_sections function for sections found in config text.

test_copy_sections_not_found()[source]#

Test copy_sections function for sections not in config text.

test_default_get_site_and_lang()[source]#

Test get_site_and_lang function with defaults.

test_file_exists()[source]#

Test file_exists function.

test_get_site_and_lang()[source]#

Test get_site_and_lang function with parameters.

test_parse_sections()[source]#

Test parse_sections regex.