# Path: mtf/backend/nspawn.py
# DEFAULT_RETRYTIMEOUT = 30
# DEFAULT_SLEEP = 1
# class Image(object):
# class Container(object):
# class testImage(Test):
# class testContainer(Test):
#         class ContainerNoWait(Container):
#     def __init__(self, repos, packageset, location, installed=False, packager="dnf -y",
#                  name="unique", ignore_installed=False):
#     def create_snapshot(self, destination):
#     def __install(self):
#     def get_location(self):
#     def rmi(self):
#     def __init__(self, image, name=None):
#     def __machined_restart(self):
#     def __is_killed(self):
#     def __is_booted(self):
#     def boot_machine(self, nspawn_add_option_list=[], boot_cmd="", wait_finish=False):
#     def execute(self, command, **kwargs):
#     def _run_systemdrun_decide(self):
#     def __systemctl_wait_until_finish(self, machine, unit):
#     def run_systemdrun(self, command, internal_background=False, **kwargs):
#     def run_machinectl(self, command, **kwargs):
#     def selfcheck(self):
#     def copy_to(self, src, dest):
#     def copy_from(self, src, dest):
#     def stop(self):
#     def rm(self):
#     def setUp(self):
#     def test_basic(self):
#     def tearDown(self):
#     def setUp(self):
#     def test_basic(self):
#     def test_basic_noname(self):
#     def test_basic_systemd_run(self):
#     def test_basic_systemd_run_no_wait(self):
#             def _run_systemdrun_decide(self):
#     def BAD_test_basic_machinectl_shell(self):
#     def test_copy(self):
#     def test_boot_command(self):
#     def test_boot_command_wait(self):
#     def test_container_additional_options(self):
#     def tearDown(self):
# 
# Path: moduleframework/common.py
# class MTFConfParser(dict):
# class CommonFunctions(object):
#     def __init__(self):
# def generate_unique_name(size=10):
# def get_openshift_local():
# def get_openshift_ip():
# def get_openshift_user():
# def get_openshift_passwd():
# def get_if_install_default_profile():
# def is_recursive_download():
# def get_if_do_cleanup():
# def get_if_reuse():
# def get_if_remoterepos():
# def get_odcs_envvar():
# def is_true(value):
# def get_openidc_auth():
# def get_if_module():
# def sanitize_text(text, replacement="_", invalid_chars=["/", ";", "&", ">", "<", "|"]):
# def sanitize_cmd(cmd):
# def translate_cmd(cmd, translation_dict=None):
# def get_profile():
# def get_url():
# def get_compose_url():
# def get_modulemdurl():
#     def __init__(self, *args, **kwargs):
#     def loadconfig(self):
#     def set_url(self, url=None, force=False):
#     def get_url(self):
#     def get_template(self):
#     def get_docker_pull(self):
#     def getArch(self):
#     def runHost(self, command="ls /", **kwargs):
#     def get_test_dependencies(self):
#     def installTestDependencies(self, packages=None):
#     def getPackageList(self, profile=None):
#     def getModuleDependencies(self):
#     def dependency_list(self):
#     def dependency_list(self, value):
#     def getModulemdYamlconfig(self, urllink=None):
#     def getIPaddr(self):
#     def ip_address(self):
#     def ip_address(self, value):
#     def _callSetupFromConfig(self):
#     def _callCleanupFromConfig(self):
#     def run(self, command, **kwargs):
#     def get_packager(self):
#     def status(self, command="/bin/true"):
#     def start(self, command="/bin/true"):
#     def stop(self, command="/bin/true"):
#     def install_packages(self, packages=None):
#     def tearDown(self):
#     def copyTo(self, src, dest):
#     def copyFrom(self, src, dest):
#     def run_script(self, filename, *args, **kwargs):
# def get_config(fail_without_url=True, reload=False):
# def list_modules_from_config():
# def get_backend_list():
# def get_module_type():
# def get_module_type_base():
# def get_docker_file(dir_name=conf["docker"]["dockerfiledefaultlocation"]):
# def get_helpmd_file(dir_name=conf["docker"]["dockerfiledefaultlocation"]):
# def getBasePackageSet(modulesDict=None, isModule=True, isContainer=False):
# def get_base_compose():
# 
# Path: moduleframework/core.py
# DATADIR = ['usr', 'share', 'moduleframework']
# def is_debug():
# def is_not_silent():
# def print_info(*args):
# def print_debug(*args):


import time
import hashlib
import os
import rpm_helper
from mtf.backend import nspawn
from moduleframework import common, core
        :return: avocado.process.run
        """
        return self.run(command="/bin/true").stdout

    def copyTo(self, src, dest):
        """
        Copy file to module from host

        :param src: source file on host
        :param dest: destination file on module
        :return: None
        """
        self.__container.copy_to(src, dest)

    def copyFrom(self, src, dest):
        """
        Copy file from module to host

        :param src: source file on module
        :param dest: destination file on host
        :return: None
        """
        self.__container.copy_from(src, dest)

    def tearDown(self):
        """
        cleanup environment after test is finished and call cleanup section in config file

        :return: None
        """

# Path: mtf/backend/nspawn.py
# DEFAULT_RETRYTIMEOUT = 30
# DEFAULT_SLEEP = 1
# class Image(object):
# class Container(object):
# class testImage(Test):
# class testContainer(Test):
#         class ContainerNoWait(Container):
#     def __init__(self, repos, packageset, location, installed=False, packager="dnf -y",
#                  name="unique", ignore_installed=False):
#     def create_snapshot(self, destination):
#     def __install(self):
#     def get_location(self):
#     def rmi(self):
#     def __init__(self, image, name=None):
#     def __machined_restart(self):
#     def __is_killed(self):
#     def __is_booted(self):
#     def boot_machine(self, nspawn_add_option_list=[], boot_cmd="", wait_finish=False):
#     def execute(self, command, **kwargs):
#     def _run_systemdrun_decide(self):
#     def __systemctl_wait_until_finish(self, machine, unit):
#     def run_systemdrun(self, command, internal_background=False, **kwargs):
#     def run_machinectl(self, command, **kwargs):
#     def selfcheck(self):
#     def copy_to(self, src, dest):
#     def copy_from(self, src, dest):
#     def stop(self):
#     def rm(self):
#     def setUp(self):
#     def test_basic(self):
#     def tearDown(self):
#     def setUp(self):
#     def test_basic(self):
#     def test_basic_noname(self):
#     def test_basic_systemd_run(self):
#     def test_basic_systemd_run_no_wait(self):
#             def _run_systemdrun_decide(self):
#     def BAD_test_basic_machinectl_shell(self):
#     def test_copy(self):
#     def test_boot_command(self):
#     def test_boot_command_wait(self):
#     def test_container_additional_options(self):
#     def tearDown(self):
# 
# Path: moduleframework/common.py
# class MTFConfParser(dict):
# class CommonFunctions(object):
#     def __init__(self):
# def generate_unique_name(size=10):
# def get_openshift_local():
# def get_openshift_ip():
# def get_openshift_user():
# def get_openshift_passwd():
# def get_if_install_default_profile():
# def is_recursive_download():
# def get_if_do_cleanup():
# def get_if_reuse():
# def get_if_remoterepos():
# def get_odcs_envvar():
# def is_true(value):
# def get_openidc_auth():
# def get_if_module():
# def sanitize_text(text, replacement="_", invalid_chars=["/", ";", "&", ">", "<", "|"]):
# def sanitize_cmd(cmd):
# def translate_cmd(cmd, translation_dict=None):
# def get_profile():
# def get_url():
# def get_compose_url():
# def get_modulemdurl():
#     def __init__(self, *args, **kwargs):
#     def loadconfig(self):
#     def set_url(self, url=None, force=False):
#     def get_url(self):
#     def get_template(self):
#     def get_docker_pull(self):
#     def getArch(self):
#     def runHost(self, command="ls /", **kwargs):
#     def get_test_dependencies(self):
#     def installTestDependencies(self, packages=None):
#     def getPackageList(self, profile=None):
#     def getModuleDependencies(self):
#     def dependency_list(self):
#     def dependency_list(self, value):
#     def getModulemdYamlconfig(self, urllink=None):
#     def getIPaddr(self):
#     def ip_address(self):
#     def ip_address(self, value):
#     def _callSetupFromConfig(self):
#     def _callCleanupFromConfig(self):
#     def run(self, command, **kwargs):
#     def get_packager(self):
#     def status(self, command="/bin/true"):
#     def start(self, command="/bin/true"):
#     def stop(self, command="/bin/true"):
#     def install_packages(self, packages=None):
#     def tearDown(self):
#     def copyTo(self, src, dest):
#     def copyFrom(self, src, dest):
#     def run_script(self, filename, *args, **kwargs):
# def get_config(fail_without_url=True, reload=False):
# def list_modules_from_config():
# def get_backend_list():
# def get_module_type():
# def get_module_type_base():
# def get_docker_file(dir_name=conf["docker"]["dockerfiledefaultlocation"]):
# def get_helpmd_file(dir_name=conf["docker"]["dockerfiledefaultlocation"]):
# def getBasePackageSet(modulesDict=None, isModule=True, isContainer=False):
# def get_base_compose():
# 
# Path: moduleframework/core.py
# DATADIR = ['usr', 'share', 'moduleframework']
# def is_debug():
# def is_not_silent():
# def print_info(*args):
# def print_debug(*args):


# Path: moduleframework/helpers/nspawn_helper.py
import time
import hashlib
import os
import rpm_helper
from mtf.backend import nspawn
from moduleframework import common, core

        :return: avocado.process.run
        """
        return self.run(command="/bin/true").stdout

    def copyTo(self, src, dest):
        """
        Copy file to module from host

        :param src: source file on host
        :param dest: destination file on module
        :return: None
        """
        self.__container.copy_to(src, dest)

    def copyFrom(self, src, dest):
        """
        Copy file from module to host

        :param src: source file on module
        :param dest: destination file on host
        :return: None
        """
        self.__container.copy_from(src, dest)

    def tearDown(self):
        """
        cleanup environment after test is finished and call cleanup section in config file

        :return: None
        """

        if common.get_if_do_cleanup() and not common.get_if_reuse():