test_conf.py
author Tero Marttila <terom@fixme.fi>
Thu, 02 Apr 2009 23:59:31 +0300
changeset 5 86b05c0ab5cd
parent 4 8b633782f02d
permissions -rw-r--r--
generate a db.paivola.fi file
"""
    Test conf.py
"""

import unittest

class _TestConfBase (unittest.TestCase) :
    def assert_obj (self, obj, lines) :
        """
            Formats the given conf.Object and compares the output against the given lines
        """
        
        for obj_line, line in zip(obj.fmt_lines(), lines) :
            self.assertEqual(obj_line, line)