def make_tests(suite_name): builder = TestBuilder(suite_name) builder.addTest("containerRecognition", EMPTY_CONTAINERS) builder.addTest("numericTypes", NUMERIC_TYPES) builder.addTest("stringTypes", STRING_TYPES) builder.addTest("typeTests", TYPES_TESTS) builder.addTest("miscTypes", MISC_TYPES) builder.addModularTest("module", MODULE_TEST,[TestModule("bar","")])
def make_tests(suite_name): builder = TestBuilder(suite_name) full_module_name = "bar" script = IMPORT_ALL_SCRIPT_CONTENT % full_module_name modules = [TestModule(full_module_name, IMPORTED_MODULE_CONTENT)] builder.addModularTest("importAll", script, modules) full_module_name = "zig.zag.bar" script = IMPORT_ALL_SCRIPT_CONTENT % full_module_name modules = [TestModule(full_module_name, IMPORTED_MODULE_CONTENT)] builder.addModularTest("packImportAll", script, modules) full_module_name = "boo.bar" modules = [TestModule(full_module_name, IMPORTED_MODULE_CONTENT)] script = IMPORT_BY_NAME % full_module_name builder.addModularTest("importByName", script, modules) script = IMPORT_BY_ALIAS % full_module_name builder.addModularTest("importByAlias", script, modules) script = SIMPLE_IMPORT % {"module": full_module_name} builder.addModularTest("importModule", script, modules)