test_conf.py
author Tero Marttila <terom@fixme.fi>
Sun, 12 Jul 2009 00:43:36 +0300
changeset 6 57e8168ba8c4
parent 4 8b633782f02d
permissions -rw-r--r--
use FQDN for zone hosts
"""
    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)