tests package

Submodules

tests.test_barutils module

Test the barutils module.

class tests.test_barutils.TestClassBarutils[source]

Bases: object

Test compression, extraction and related operations.

test_calculate_strength_32()[source]

Test compression strength for 32-bit systems.

test_calculate_strength_64()[source]

Test compression strength for 64-bit systems.

test_check_bar()[source]

Test zip verification.

test_create_blitz()[source]

Test blitz package creation.

test_extract_bars()[source]

Test extraction.

test_extract_bars_fail(capsys)[source]

Test extraction failure, raise exception.

class tests.test_barutils.TestClassBarutilsBarMover[source]

Bases: object

Test moving of files.

classmethod setup_class()[source]

Create files to move.

test_move_bars_big()[source]

Test moving large bar files.

test_move_bars_small()[source]

Test moving small bar files.

class tests.test_barutils.TestClassBarutilsCompression[source]

Bases: object

Test file compression.

test_compress_bz2()[source]

Test bz2 compression.

test_compress_bz2_fail()[source]

Test bz2 compression failure.

test_compress_gzip()[source]

Test gzip compression.

test_compress_gzip_fail()[source]

Test gzip compression failure.

test_compress_lzma()[source]

Test xz compression.

test_compress_lzma_fail()[source]

Test xz compression failure.

test_compress_suite()[source]

Test the bulk compression/verification suite.

test_compress_sz()[source]

Test 7z compression.

test_compress_sz_fail(capsys)[source]

Test 7z compresssion failure.

test_compress_zip()[source]

Test zip compression.

test_compress_zip_fail()[source]

Test zip compression failure.

class tests.test_barutils.TestClassBarutilsConfig[source]

Bases: object

Test reading/writing configs with ConfigParser.

test_compress_loader()[source]

Test reading compression settings.

test_compress_loader_legacy()[source]

Test reading compression settings, Python 3.2.

test_compress_writer()[source]

Test writing compression settings.

class tests.test_barutils.TestClassBarutilsLoaderMover[source]

Bases: object

Test moving of files.

classmethod setup_class()[source]

Create files to move.

test_move_loaders_bigexe()[source]

Test moving large, uncompressed loaders.

test_move_loaders_bigzip()[source]

Test moving large, compressed loaders.

test_move_loaders_smallexe()[source]

Test moving small, uncompressed loaders.

test_move_loaders_smallzip()[source]

Test moving small, compressed loaders.

class tests.test_barutils.TestClassBarutilsMethods[source]

Bases: object

Test method filtering.

test_filter_method_bad()[source]

Test method checking, worst case.

test_filter_method_good()[source]

Test method checking, best case.

test_filter_method_legacy()[source]

Test method checking, Python 3.2.

test_filter_method_null()[source]

Test method checking, null case.

test_filter_method_ok()[source]

Test method checking, middle case.

class tests.test_barutils.TestClassBarutilsRemovers[source]

Bases: object

Test file/folder removal.

test_remove_empty_folders()[source]

Test removal of empty folders.

test_remove_empty_folders_fail()[source]

Test failure to remove empty folders.

test_remove_signed_files()[source]

Test removal of signed files.

test_remove_uncomps()[source]

Test removing uncompressed loader directories.

class tests.test_barutils.TestClassBarutilsSha512[source]

Bases: object

Test manifest parsing/verification.

classmethod setup_class()[source]

Create file to verify.

test_sha512_retrieve()[source]

Test retrieval of SHA512 hash (in Base64) from a bar file’s manifest.

test_sha512_retrieve_fail(capsys)[source]

Test SHA512 hash retrieval failure.

test_sha512_retrieve_noman()[source]

Test SHA512 manifest read failure.

test_sha512_verify()[source]

Test comparison of signed file hash with that from the manifest.

class tests.test_barutils.TestClassBarutilsVerifier[source]

Bases: object

Test verification of archives.

classmethod setup_class()[source]

Create compressed loaders to verify.

test_bar_tester()[source]

Test bar verification.

test_bar_tester_fail()[source]

Test bar verification failure.

test_verify_sz()[source]

Test 7z verification.

test_verify_sz_fail()[source]

Test 7z verification failure.

test_verify_tbz()[source]

Test tar.bz2 verification.

test_verify_tbz_fail()[source]

Test tar.bz2 verification failure.

test_verify_tgz()[source]

Test tar.gz verification.

test_verify_tgz_fail()[source]

Test tar.gz verification failure.

test_verify_txz()[source]

Test tar.xz verification.

test_verify_txz_fail()[source]

Test tar.xz verification failure.

test_verify_zip()[source]

Test zip verification.

test_verify_zip_fail()[source]

Test zip verification failure.

tests.test_barutils.setup_module(module)[source]

Create necessary files.

tests.test_barutils.teardown_module(module)[source]

Delete necessary files.

tests.test_filehashtools module

Test the filehashtools module.

class tests.test_filehashtools.TestClassFilehashtools[source]

Bases: object

Test hash/GnuPG utilities.

test_adler32hash()[source]

Test Adler32 checksum.

test_crc32hash()[source]

Test CRC32 checksum.

test_escreens()[source]

Test EScreens code generation.

test_md4_unavail(capsys)[source]

Test MD4 hash, if not available.

test_md4hash()[source]

Test MD4 hash.

test_md5hash()[source]

Test MD5 hash.

test_ripemd160_unavail(capsys)[source]

Test RIPEMD160 hash, if not available.

test_ripemd160hash()[source]

Test RIPEMD160 hash.

test_sha1hash()[source]

Test SHA-1 hash.

test_sha224hash()[source]

Test SHA-224 hash.

test_sha256hash()[source]

Test SHA-256 hash.

test_sha384hash()[source]

Test SHA-384 hash.

test_sha512hash()[source]

Test SHA-512 hash.

test_verifier(onefile=False)[source]

Test batch hashing.

Parameters:onefile (bool) – One file or not. Default is false.
test_verifier_onefile()[source]

Test batch hashing, one output file.

test_whirlpool_unavail(capsys)[source]

Test Whirlpool hash, if not available.

test_whirlpoolhash()[source]

Test Whirlpool hash.

class tests.test_filehashtools.TestClassFilehashtoolsConfig[source]

Bases: object

Test reading/writing configs with ConfigParser.

classmethod setup_class()[source]

Create dictionaries for self.

test_gpg_loader_empty()[source]

Test reading GPG settings on empty.

test_gpg_loader_loaded()[source]

Test reading GPG settings when completed.

test_gpg_writer()[source]

Test writing GPG settings.

test_hash_loader()[source]

Test reading hash settings.

test_hash_writer()[source]

Test writing hash settings.

class tests.test_filehashtools.TestClassFilehashtoolsGPG[source]

Bases: object

Test GPG-related tools.

test_gpgfile()[source]

Test GnuPG signing.

test_gpgrunner()[source]

Test batch GnuPG signing.

test_gpgrunner_failure(capsys)[source]

Test GPGRunner going wrong during the process.

test_gpgrunner_unavail(capsys)[source]

Test GPGRunner raising ValueError, i.e. GnuPG not found.

tests.test_filehashtools.setup_module(module)[source]

Create necessary files.

tests.test_filehashtools.teardown_module(module)[source]

Delete necessary files.

tests.test_loadergen module

Test the loadergen module.

class tests.test_loadergen.TestClassLoadergen[source]

Bases: object

Test autoloader generation.

test_filename_malformed()[source]

Test filename creation if the device is imaginary.

test_filename_nosuffix()[source]

Test filename creation without suffix.

test_generate_cores()[source]

Test creating multiple core autoloaders.

test_generate_lazy_loader()[source]

Test creating one autoloader (lazyloader).

test_generate_lazy_no_os(capsys)[source]

Test creating one autoloader but no OS is given.

test_generate_lazy_no_rad(capsys)[source]

Test creating one autoloader but no radio is given.

test_generate_loaders()[source]

Test creating multiple autoloaders (archivist).

test_pretty_formatter()[source]

Test OS/radio version formatting.

test_read_os_none()[source]

Test finding OS filenames when there are no OS files.

test_read_radio_none()[source]

Test finding radio filenames when there are no radio files.

test_suffix_hybrid()[source]

Test suffix formation, if hybrid radio is specified.

test_wrap_pseudocap_error(capsys)[source]

Test wrapping pseudocap when an error is raised.

test_wrap_pseudocap_none()[source]

Test wrapping pseudocap when no files are given.

tests.test_loadergen.setup_module(module)[source]

Create necessary files.

tests.test_loadergen.teardown_module(module)[source]

Delete necessary files.

tests.test_networkutils module

Test the networkutils module.

class tests.test_networkutils.TestClassNetworkutils[source]

Bases: object

Test network utilities and support functions.

test_content_length_bad()[source]

Test content-length header checking, connection error.

test_content_length_null()[source]

Test content-length header checking, no URL given.

test_create_base_url()[source]

Test base URL creation.

test_download()[source]

Test downloading.

test_download_bootstrap()[source]

Test multiple downloading.

test_get_content_length()[source]

Test content-length header checking, best case.

test_grab_pem()[source]

Test finding CA certs.

test_return_npc()[source]

Test NPC generation.

class tests.test_networkutils.TestClassNetworkutilsParsing[source]

Bases: object

Test functions that require parsing of XML/HTML.

test_availability_bad()[source]

Test availability, worst case.

test_availability_error()[source]

Test availability, connection error.

test_availability_good()[source]

Test availability, best case.

test_bundle_lookup_big()[source]

Test bundle lookup, large input.

test_bundle_lookup_small()[source]

Test bundle lookup, small input.

test_carrier_checker_bad()[source]

Test carrier checking, worst case.

test_carrier_checker_good()[source]

Test carrier checking, best case.

test_kernel_scraper()[source]

Test kernel checking.

test_ptcrb_scraper_bad()[source]

Test certification checking, worst case.

test_ptcrb_scraper_good()[source]

Test certification checking, best case.

test_ptcrb_scraper_priv()[source]

Test certification checking.

test_sr_lookup_bad()[source]

Test software lookup, worst case.

test_sr_lookup_bootstrap()[source]

Test multiple software lookups.

test_sr_lookup_good()[source]

Test software lookup, best case.

test_sr_lookup_timeout()[source]

Test software lookup, timeout (alpha 1, probably).

test_upd_req_bad()[source]

Test carrier update request, no software version.

test_upd_req_good()[source]

Test carrier update request, ideal case.

tests.test_networkutils.av_bad_mock(url, request)[source]

Mock for availability, worst case.

tests.test_networkutils.av_good_mock(url, request)[source]

Mock for availability, best case.

tests.test_networkutils.bl_big_mock(url, request)[source]

Mock for bundle lookup, large output.

tests.test_networkutils.bl_little_mock(url, request)[source]

Mock for bundle lookup, small output.

tests.test_networkutils.cc_bad_mock(url, request)[source]

Mock for carrier checking, worst case.

tests.test_networkutils.cc_good_mock(url, request)[source]

Mock for carrier checking, best case.

tests.test_networkutils.cl_good_mock(url, request)[source]

HTTMock mock for content_length.

tests.test_networkutils.conn_error_mock(url, request)[source]

HTTMock mock for content_length, connection error.

tests.test_networkutils.cu_bad_mock(url, request)[source]

Mock for carrier update checking, bad case.

tests.test_networkutils.cu_good_mock(url, request)[source]

Mock for carrier update checking, ideal case.

tests.test_networkutils.download_mock(url, request)[source]

HTTMock mock for downloading.

tests.test_networkutils.download_mock_huge(url, request)[source]

HTTMock mock for downloading big files.

tests.test_networkutils.gh_mock(url, request)[source]

Mock for kernel lookup.

tests.test_networkutils.ps_bad_mock(url, request)[source]

Mock for PTCRB lookup, worst case.

tests.test_networkutils.ps_good_mock(url, request)[source]

Mock for PTCRB lookup, best case.

tests.test_networkutils.ps_priv_mock(url, request)[source]

Mock for PTCRB lookup, Android cert.

tests.test_networkutils.setup_module(module)[source]

Create necessary files.

tests.test_networkutils.sr_bad_mock(url, request)[source]

Mock for software release lookup, worst case.

tests.test_networkutils.sr_good_mock(url, request)[source]

Mock for software release lookup, best case.

tests.test_networkutils.teardown_module(module)[source]

Delete necessary files.

tests.test_networkutils.timeout_mock(url, request)[source]

Mock for software release lookup, timeout.

tests.test_pseudocap module

Test the pseudocap module.

class tests.test_pseudocap.TestClassPseudocap[source]

Bases: object

Test pseudocap, the Python equivalent of cap.exe.

test_fifth_loader()[source]

Test loader integrity.

test_fifthfile_ioerror()[source]

Test IOError while writing fifth signed file.

test_first_loader()[source]

Test loader integrity.

test_firstfile_ioerror()[source]

Test IOError while writing first signed file.

test_fourth_loader()[source]

Test loader integrity.

test_fourthfile_ioerror()[source]

Test IOError while writing fourth signed file.

test_gconvert_nonint()[source]

Test non-int “conversion”.

test_ghetto_convert()[source]

Test decimal -> little-endian hex “conversion”.

test_invalid_filecount(capsys)[source]

Test invalid number of files sent to autoloader maker.

test_make_offset_hash()[source]

Test offset integrity.

test_make_offset_len()[source]

Test offset length.

test_second_loader()[source]

Test loader integrity.

test_secondfile_ioerror()[source]

Test IOError while writing second signed file.

test_sixth_loader()[source]

Test loader integrity.

test_sixthfile_ioerror()[source]

Test IOError while writing sixth signed file.

test_target_ioerror()[source]

Test IOError upon opening target file.

test_third_loader()[source]

Test loader integrity.

test_thirdfile_ioerror()[source]

Test IOError while writing third signed file.

test_type_error()[source]

Test file type failure (i.e. file is None).

test_write4k_ioerror(capsys)[source]

Test error incurred by writing 4096 bytes at a time.

tests.test_pseudocap.setup_module(module)[source]

Create necessary files.

tests.test_pseudocap.teardown_module(module)[source]

Delete necessary files.

tests.test_scriptutils module

Test the scriptutils module.

class tests.test_scriptutils.TestClassScriptutils[source]

Bases: object

Test script-related tools.

test_radio_version()[source]

Test radio version non-incrementing.

test_radio_version_inc()[source]

Test radio version incrementing.

class tests.test_scriptutils.TestClassScriptutilsArguments[source]

Bases: object

Test argparse parser generation.

classmethod setup_class()[source]

Create parser for testing.

test_parser_desc()[source]

Test if parser has the desc set.

test_parser_epilog()[source]

Test if parser has the epilog set.

test_parser_name()[source]

Test if parser has the name set.

class tests.test_scriptutils.TestClassScriptutilsGPG[source]

Bases: object

Test GPG-related utilities.

test_gpgver_key()[source]

Test lack of GPG key.

test_gpgver_no_sell()[source]

Test lack of both, and not replacing them.

test_gpgver_pass()[source]

Test lack of GPG pass.

test_gpgver_unchanged()[source]

Test no modifications to GPG credentials.

class tests.test_scriptutils.TestClassScriptutilsIntegrity[source]

Bases: object

Test checking file integrity.

classmethod setup_class()[source]

Create files for testing.

test_bar_files_bad(capsys)[source]

Test checking bar file manifest, worst case, no download.

test_bar_files_good(capsys)[source]

Test checking bar file manifest, best case.

test_loader_bulk_bad()[source]

Test checking many loaders, worst case.

test_loader_bulk_good(capsys)[source]

Test checking many loaders, best case.

test_loader_bulk_nonwin()[source]

Test checking many loaders, non-Windows.

test_loader_single_bad()[source]

Test checking one loader, worst case.

test_loader_single_good(capsys)[source]

Test checking one loader, best case.

test_loader_single_nonwin()[source]

Test checking one loader, non-Windows.

test_signed_files_bad(capsys)[source]

Test checking signed files against manifest, worst case.

test_signed_files_good()[source]

Test checking signed files against manifest, best case.

class tests.test_scriptutils.TestClassScriptutilsSevenzip[source]

Bases: object

Test 7-Zip related utilities.

test_szexe_exit()[source]

Test exiting upon not finding 7z exe.

test_szexe_fallback()[source]

Test falling back to zip upon not finding 7z exe.

test_szexe_irrelevant()[source]

Test 7z exe finding, without actually looking.

test_szexe_present()[source]

Test 7z exe finding, when it exists.

class tests.test_scriptutils.TestClassScriptutilsSoftware[source]

Bases: object

Test software release-related utilities.

test_check_rsw_auto(capsys)[source]

Test automatic radio software availability checking.

test_check_rsw_exit()[source]

Test exiting upon radio software release availability failure.

test_check_rsw_go()[source]

Test continuing upon radio software release availability failure.

test_check_rsw_manual(capsys)[source]

Test manual radio software availability checking.

test_check_sw_auto(capsys)[source]

Test automatic software availability checking.

test_check_sw_exit()[source]

Test exiting upon software release availability failure.

test_check_sw_go()[source]

Test continuing upon software release availability failure.

test_check_sw_manual(capsys)[source]

Test manual software availability checking.

test_return_rswc_auto()[source]

Test radio software release non-checking.

test_return_rswc_exit()[source]

Test exiting upon radio software release check failure.

test_return_rswc_explicit()[source]

Test radio software release checking, failure and definition.

test_return_rswc_manual()[source]

Test radio software release checking.

test_return_swc_auto()[source]

Test software release non-checking,

test_return_swc_exit()[source]

Test exiting upon software release check failure.

test_return_swc_explicit()[source]

Test software release checking, failure and definition.

test_return_swc_manual()[source]

Test software release checking.

class tests.test_scriptutils.TestClassScriptutilsURLCheck[source]

Bases: object

Test URL-related utilities.

test_os_bulk(capsys)[source]

Test bulk OS availability.

test_os_bulk_fail()[source]

Test bulk OS availability failure.

test_os_bulk_go()[source]

Test bulk OS availability continuation.

test_os_single(capsys)[source]

Test single OS availability.

test_os_single_fail()[source]

Test single OS availability failure.

test_os_single_go()[source]

Test single OS availability continuation.

test_radio_bulk(capsys)[source]

Test bulk radio availability.

test_radio_bulk_fail()[source]

Test bulk radio availability failure.

test_radio_bulk_replace()[source]

Test bulk radio availability replacement.

test_radio_single(capsys)[source]

Test single radio availability.

test_radio_single_fail()[source]

Test single radio availability failure.

test_radio_single_replace()[source]

Test single radio availability replacement.

tests.test_scriptutils.setup_module(module)[source]

Create necessary files.

tests.test_scriptutils.teardown_module(module)[source]

Delete necessary files.

tests.test_smtputils module

Test the smtputils module.

class tests.test_smtputils.TestClassSMTPUtils[source]

Bases: object

Test SMTP-related tools.

test_generate_message()[source]

Test MIMEText message creation.

test_generate_subject()[source]

Test subject generation.

test_parse_kwargs()[source]

Test kwarg unpacking.

test_prep_email()[source]

Test preparing and sending an email.

test_send_email()[source]

Test sending an email.

test_smtp_confgen_fback()[source]

Test config fallback.

test_smtp_confgen_ssl()[source]

Test SSL fallback, specifically.

test_smtp_config_generator()[source]

Test config filtering.

class tests.test_smtputils.TestClassSMTPUtilsConfig[source]

Bases: object

Test reading/writing configs with ConfigParser.

classmethod setup_class()[source]

Create dictionaries for self.

test_smtp_loader_completed()[source]

Test reading SMTP settings when completed.

test_smtp_loader_empty()[source]

Test reading SMTP settings when empty.

test_smtp_writer()[source]

Test writing compression settings.

tests.test_smtputils.setup_module(module)[source]

Create necessary files.

tests.test_smtputils.teardown_module(module)[source]

Delete necessary files.

tests.test_sqlutils module

Test the sqlutils module.

class tests.test_sqlutils.TestClassSQLUtils[source]

Bases: object

Test SQL-related tools.

test_entry_existence(capsys)[source]

Test recognition of already inserted entries.

test_export_sql_db(capsys)[source]

Test exporting SQL database to csv file.

test_insert_sw_release(capsys)[source]

Test adding/updating software release to SQL database, including uniqueness.

test_list_sw_releases(capsys)[source]

Test returning all rows from SQL database.

test_pop_sw_release(capsys)[source]

Test removing software release from SQL database.

test_prepare_sw_db(capsys)[source]

Test preparing SQL database.

tests.test_sqlutils.setup_module(module)[source]

Create necessary files.

tests.test_sqlutils.teardown_module(module)[source]

Delete necessary files.

tests.test_textgenerator module

Test the textgenerator module.

class tests.test_textgenerator.TestClassTextGenerator[source]

Bases: object

Test text generation and storage.

classmethod setup_class()[source]

Create necessary links.

test_generator_core_length()[source]

Test length of core dict.

test_generator_debrick_length()[source]

Test length of debrick dict.

test_generator_radio_length()[source]

Test length of radio dict.

Test writing URLs to file.

Test writing URLs, to file, if file existence not guaranteed.

Test writing URLs to file, including “apps”.

tests.test_textgenerator.cl_good_mock(url, request)[source]

HTTMock mock for content_length.

tests.test_textgenerator.setup_module(module)[source]

Create necessary files.

tests.test_textgenerator.teardown_module(module)[source]

Delete necessary files.

tests.test_utilities module

Test the utilities module.

class tests.test_utilities.TestClassUtilities[source]

Bases: object

Test miscellaneous utilities.

test_barname_stripper()[source]

Test bar name cleaning.

test_grab_cap()[source]

Test finding cap location.

test_grab_cfp()[source]

Test finding cfp location.

test_return_and_delete()[source]

Test reading a file then deleting it.

test_str2bool_bad()[source]

Test checking of input parsing, worst case.

test_str2bool_good()[source]

Test checking of input parsing, best case.

test_version_incrementer_bad()[source]

Test version incrementing, worst case.

test_version_incrementer_good()[source]

Test version incrementing, best case.

test_where_which()[source]

Test implementation of where.

class tests.test_utilities.TestClassUtilities7z[source]

Bases: object

Test utilities related to 7-Zip.

test_get_seven_zip()[source]

Test checking of 7z.

test_prep_seven_zip_bad()[source]

Test availability of 7z, worst case.

test_prep_seven_zip_good()[source]

Test availability of 7z, best case.

test_prep_seven_zip_which()[source]

Test availability of 7z, no which.

test_win_seven_zip_local_32()[source]

Test local checking of 7z, 32-bit on 32-bit.

test_win_seven_zip_local_6432()[source]

Test local checking of 7z, 32-bit on 64-bit.

test_win_seven_zip_local_6464()[source]

Test local checking of 7z, 64-bit on 64-bit.

test_win_seven_zip_remote()[source]

Test registry checking of 7z.

class tests.test_utilities.TestClassUtilitiesArgparse[source]

Bases: object

Test miscellaneous utilities involving arguments.

test_escreens_duration_bad()[source]

Test checking of escreens duration, worst case.

test_escreens_duration_good()[source]

Test checking of escreens duration, best case.

test_escreens_pin_good()[source]

Test checking of escreens PIN.

test_escreens_pin_long()[source]

Test checking of escreens PIN, too long.

test_escreens_pin_nonhex()[source]

Test checking of escreens PIN, not hexadecimal.

test_file_exists_bad()[source]

Test if non-existent file exists. Of course.

test_file_exists_good()[source]

Test if self exists. How very Cartesian.

test_filesize_parser_good()[source]

Test parsing of filesize, ideal case.

test_filesize_parser_huge()[source]

Test parsing of filesize, large number given.

test_filesize_parser_none()[source]

Test parsing of filesize, None given.

test_positive_integer_bad()[source]

Test integer for positive-ness, worst case.

test_positive_integer_good()[source]

Test integer for positive-ness, best case.

test_valid_carrier_bad()[source]

Test checking of carrier validity, worst case.

test_valid_carrier_good()[source]

Test checking of carrier validity, best case.

test_valid_carrier_reallybad()[source]

Test checking of carrier validity, Ragnarök case.

test_valid_method_bad()[source]

Test compression method validity, worst case.

test_valid_method_good()[source]

Test compression method validity, best case.

class tests.test_utilities.TestClassUtilitiesConfig[source]

Bases: object

Test reading/writing configs with ConfigParser.

test_cappath_loader()[source]

Test reading CAP path settings.

test_cappath_writer()[source]

Test writing CAP path settings.

class tests.test_utilities.TestClassUtilitiesLoaders[source]

Bases: object

Test autoloader integrity checking.

test_integrity_bulk_bad()[source]

Test checking return code of all autoloaders, worst case.

test_integrity_bulk_good()[source]

Test checking return code of all autoloaders, best case.

test_integrity_bulk_nonwin()[source]

Test checking return code of all autoloaders, non-Windows.

test_integrity_single_bad()[source]

Test checking return code of one autoloader, worst case.

test_integrity_single_exception()[source]

Test checking return code of one autoloader, if OSError is raised.

test_integrity_single_good()[source]

Test checking return code of one autoloader, best case.

test_integrity_single_nonwin()[source]

Test checking return code of one autoloader, non-Windows.

class tests.test_utilities.TestClassUtilitiesPlatform[source]

Bases: object

Test platform utilities.

test_get_core_count()[source]

Test core count.

test_is_amd64_bad()[source]

Test checking of AMD64 OS, worst case.

test_is_amd64_good()[source]

Test checking of AMD64 OS, best case.

test_is_windows_bad()[source]

Test checking of Windows platform, worst case.

test_is_windows_good()[source]

Test checking of Windows platform, best case.

class tests.test_utilities.TestClassUtilitiesStdout[source]

Bases: object

Test UselessStdout and related things.

test_spinner_interrupt()[source]

Test interrupting the Spinner.

test_uselessstdout_tty()[source]

Test if UselessStdout is a terminal.

class tests.test_utilities.TestClassUtilitiesUrls[source]

Bases: object

Test generation of URLs.

test_8974()[source]

Test 8974 URLs.

test_8974_alt()[source]

Test 8974 URLs, having been updated due to OS version.

test_bulk()[source]

Test generating all URLs.

test_bulk_nocore()[source]

Test generating only debrick and radio URLs.

test_q10()[source]

Test Q10 URLs.

test_stl1()[source]

Test STL100-1 URLs.

test_stl4()[source]

Test STL100-4 URLs.

test_stlx()[source]

Test STL100-X URLs.

test_z3()[source]

Test Z3 URLs.

test_z30()[source]

Test Z30 URLs.

test_z3_alt()[source]

Test Z3 URLs, having been updated due to OS version.

tests.test_utilities.setup_module(module)[source]

Create necessary files.

tests.test_utilities.teardown_module(module)[source]

Delete necessary files.

Module contents

The unit test portion of bbarchivist.