def loadTestsFromModule(self, module):
tests = []<EOL>tests.append(TestLoader.loadTestsFromModule(self, module))<EOL>if hasattr(module, "<STR_LIT>"):<EOL><INDENT>tests.append(module.additional_tests())<EOL><DEDENT>if hasattr(module, '<STR_LIT>'):<EOL><INDENT>for file in resource_listdir(module.__name__, '<STR_LIT>'):<EOL><INDENT>if file.endswith('<STR_LIT>') and file != '<STR_LIT>':<EOL><INDENT>submodule = module.__name__ + '<STR_LIT:.>' + file[:-<NUM_LIT:3>]<EOL><DEDENT>else:<EOL><INDENT>if resource_exists(module.__name__, file + '<STR_LIT>'):<EOL><INDENT>submodule = module.__name__ + '<STR_LIT:.>' + file<EOL><DEDENT>else:<EOL><INDENT>continue<EOL><DEDENT><DEDENT>tests.append(self.loadTestsFromName(submodule))<EOL><DEDENT><DEDENT>if len(tests) != <NUM_LIT:1>:<EOL><INDENT>return self.suiteClass(tests)<EOL><DEDENT>else:<EOL><INDENT>return tests[<NUM_LIT:0>]<EOL><DEDENT>
Return a suite of all tests cases contained in the given module

        If the module is a package, load tests from all the modules in it.
        If the module has an ``additional_tests`` function, call it and add
        the return value to the tests.