sconsDoxy: Update doxygen testcase and rename
Signed-off-by: Mats Wichmann <mats@linux.com>
This commit is contained in:
parent
ebf51f227c
commit
5d1bf3c0be
1 changed files with 9 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
import unittest
|
||||
import os
|
||||
import sys
|
||||
from .doxygen import DoxyfileParse
|
||||
from doxygen import DoxyfileParse
|
||||
|
||||
|
||||
class TestParser(unittest.TestCase):
|
||||
|
|
@ -53,6 +53,14 @@ INPUT = test.h
|
|||
text = """@INCLUDE=recursive_include_test.cfg"""
|
||||
self.assertRaises(Exception, DoxyfileParse, text, self.test_config_dir)
|
||||
|
||||
def test_bytes_parse(self):
|
||||
"""Parsing bytes instead of txt should blow up."""
|
||||
text = b"""
|
||||
# comment
|
||||
INPUT = test.h
|
||||
"""
|
||||
self.assertRaises(AttributeError, DoxyfileParse, text, self.test_config_dir)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Reference in a new issue