def METHOD_NAME(text_doctest_dir, spec_test_dir):
    tests = []
    if text_doctest_dir is not None:
        doctest_suites = get_doctests(text_doctest_dir)
        tests.extend(doctest_suites)
    if spec_test_dir is not None:
        spec_testcases = get_spec_tests(spec_test_dir)
        tests.extend(spec_testcases)
    return unittest.TestSuite(tests)