# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


import unittest
import Yaco
import moa.job
import moa.logger as l
from moa.sysConf import sysConf



class templateTest(unittest.TestCase):
    """
    Test a ruff template
    """
    def __init__(self, job, *args, **kwargs):
        self.job = job
        super(templateTest, self).__init__(*args, **kwargs)

    def runTest(self):
        if not hasattr(self, 'job'):
            # only test if a job is set
            # hence, only if it is called by RuffSuite()
            return

        l.critical("testing %s" % self.job.template.name)
        templateName = self.job.template.name

# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


# Path: moa/backend/ruff/test.py
import unittest
import Yaco
import moa.job
import moa.logger as l
from moa.sysConf import sysConf




class templateTest(unittest.TestCase):
    """
    Test a ruff template
    """
    def __init__(self, job, *args, **kwargs):
        self.job = job
        super(templateTest, self).__init__(*args, **kwargs)

    def runTest(self):
        if not hasattr(self, 'job'):
            # only test if a job is set
            # hence, only if it is called by RuffSuite()
            return

        l.critical("testing %s" % self.job.template.name)
        templateName = self.job.template.name

        sysConf.job = self.job