# 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/module_framework.py
# PROFILE = None
# def skipTestIf(value, text="Test not intended for this module profile"):


from moduleframework import core, module_framework
        '/usr/src',
        '/var/account',
        '/var/cache',
        '/var/crash',
        '/var/games',
        '/var/lib',
        '/var/lock',
        '/var/log',
        '/var/mail',
        '/var/opt',
        '/var/run',
        '/var/spool',
        '/var/tmp',
        '/var/yp'
    ] + fhs_base_paths_workaound

    def _compare_fhs(self, filepath):
        if '(contains no files)' in filepath or filepath in self.fhs_base_paths:
            self.log.info("no files there (trivial case), or this is filesystem package")
            return True
        for path in self.fhs_base_paths:
            if filepath.startswith(path):
                self.log.info("%s starts with FSH %s" % (filepath, path))
                return True
        self.log.info("%s not found in %s" % (filepath, self.fhs_base_paths))
        return False

    def testPaths(self):
        self.start()
        allpackages = filter(bool, self.run("rpm -qa").stdout.split("\n"))

# 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/module_framework.py
# PROFILE = None
# def skipTestIf(value, text="Test not intended for this module profile"):


# Path: moduleframework/tests/generic/rpmvalidation.py
from moduleframework import core, module_framework

        '/usr/src',
        '/var/account',
        '/var/cache',
        '/var/crash',
        '/var/games',
        '/var/lib',
        '/var/lock',
        '/var/log',
        '/var/mail',
        '/var/opt',
        '/var/run',
        '/var/spool',
        '/var/tmp',
        '/var/yp'
    ] + fhs_base_paths_workaound

    def _compare_fhs(self, filepath):
        if '(contains no files)' in filepath or filepath in self.fhs_base_paths:
            self.log.info("no files there (trivial case), or this is filesystem package")
            return True
        for path in self.fhs_base_paths:
            if filepath.startswith(path):
                self.log.info("%s starts with FSH %s" % (filepath, path))
                return True
        self.log.info("%s not found in %s" % (filepath, self.fhs_base_paths))
        return False

    def testPaths(self):
        self.start()
        allpackages = filter(bool, self.run("rpm -qa").stdout.split("\n"))

        core.print_debug(allpackages)