lumiera_/test.py
Richard van der Hoff 3926ea513a Fix Doxyfile parsing when the first tag occurs on the first line.
Also, add a couple of regression tests.
2013-08-12 15:38:49 +01:00

26 lines
527 B
Python
Executable file

#!/usr/bin/python
#
# tests for scons doxygen builder
#
import unittest
import os
import sys
from doxygen import DoxyfileParse
class TestParser(unittest.TestCase):
def testSimpleParse(self):
text="""
INPUT = test.h
"""
result = DoxyfileParse(text)
self.assertEqual(["test.h"], result["INPUT"])
def testParseTagOnFirstLine(self):
text="""INPUT=."""
result = DoxyfileParse(text)
self.assertEqual(["."], result["INPUT"])
if __name__ == '__main__':
unittest.main()