tests.general_tools_tests package

Submodules

tests.general_tools_tests.test_file_utils module

class tests.general_tools_tests.test_file_utils.FileUtilsTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

static paths_equal(path1, path2)[source]
setUp()[source]

Runs before each test.

tearDown()[source]

Runs after each test.

Delete temp dirs

test_add_contents_to_zip()[source]
test_add_file_to_zip()[source]
test_get_files()[source]
test_get_mime_type()[source]
test_get_subdirs()[source]
test_load_json_object()[source]
test_make_dir()[source]
test_read_file()[source]
test_unzip()[source]
test_write_file()[source]
test_write_file_json()[source]

A call to write_file where the content is an object (as opposed to a string).

tests.general_tools_tests.test_smartquotes module

class tests.general_tools_tests.test_smartquotes.SmartquotesTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_empty()[source]
test_multiple_lines()[source]

tests.general_tools_tests.test_url_utils module

class tests.general_tools_tests.test_url_utils.UrlUtilsTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

static mock_urlopen(url)[source]
static raise_urlopen(url)[source]
setUp()[source]

Runs before each test.

tearDown()[source]

Runs after each test.

test_download_file()[source]
test_get_languages(*args, **keywargs)[source]
test_get_url()[source]
test_get_url_error()[source]
test_join_url_parts_multiple()[source]
test_join_url_parts_single()[source]

Module contents