Skip to content

Commit

Permalink
Test DTD generation in test level 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Justas Sadzevicius committed Sep 30, 2022
1 parent 151058b commit b3b0177
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/z3c/rml/tests/test_dtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
##############################################################################
"""Test generating DTD
"""
import io
import os
import unittest

Expand All @@ -21,7 +22,15 @@
from z3c.rml import dtd


class DTDTestCase(unittest.TestCase):
class DTDUnitTestCase(unittest.TestCase):

def runTest(self):
text = dtd.generate()
et = lxml.etree.DTD(io.StringIO(text))
self.assertIsNotNone(next(et.iterelements()))


class UpdateDTDTestCase(unittest.TestCase):

level = 2

Expand Down

0 comments on commit b3b0177

Please sign in to comment.