author | Tero Marttila <terom@fixme.fi> |
Thu, 02 Apr 2009 22:52:26 +0300 | |
changeset 4 | 8b633782f02d |
permissions | -rw-r--r-- |
4 | 1 |
""" |
2 |
Test conf.py |
|
3 |
""" |
|
4 |
||
5 |
import unittest |
|
6 |
||
7 |
class _TestConfBase (unittest.TestCase) : |
|
8 |
def assert_obj (self, obj, lines) : |
|
9 |
""" |
|
10 |
Formats the given conf.Object and compares the output against the given lines |
|
11 |
""" |
|
12 |
||
13 |
for obj_line, line in zip(obj.fmt_lines(), lines) : |
|
14 |
self.assertEqual(obj_line, line) |
|
15 |
||
16 |