def directoriesToModuleNames(dirNames):
    """ Converts a directory name into a module name """
    moduleNames = ["test." + name for name in dirNames]
    moduleNames = [name.replace(".py", "") for name in moduleNames]
    return moduleNames