def METHOD_NAME(self):
    mods = walk_modules("tests.test_utils_misc.test_walk_modules")
    expected = [
        "tests.test_utils_misc.test_walk_modules",
        "tests.test_utils_misc.test_walk_modules.mod",
        "tests.test_utils_misc.test_walk_modules.mod.mod0",
        "tests.test_utils_misc.test_walk_modules.mod1",
    ]
    self.assertEqual({m.__name__ for m in mods}, set(expected))
    mods = walk_modules("tests.test_utils_misc.test_walk_modules.mod")
    expected = [
        "tests.test_utils_misc.test_walk_modules.mod",
        "tests.test_utils_misc.test_walk_modules.mod.mod0",
    ]
    self.assertEqual({m.__name__ for m in mods}, set(expected))
    mods = walk_modules("tests.test_utils_misc.test_walk_modules.mod1")
    expected = [
        "tests.test_utils_misc.test_walk_modules.mod1",
    ]
    self.assertEqual({m.__name__ for m in mods}, set(expected))
    self.assertRaises(ImportError, walk_modules, "nomodule999")