HTML corner case for doctype=CustomDocType

This commit is contained in:
Hardirc
2016-03-22 23:11:45 -04:00
parent 89cf314358
commit 753c54dbfc
+3
View File
@@ -233,6 +233,9 @@ class TestBareHelpers(unittest.TestCase):
'<!DOCTYPE HTML>\n<html a="1" b="2" lang="en">&lt;&gt;</html>')
self.assertEqual(HTML('<>', _a='1', _b='2', doctype='').xml(),
'<html a="1" b="2" lang="en">&lt;&gt;</html>')
self.assertEqual(HTML('<>', _a='1', _b='2', doctype='CustomDocType').xml(),
'CustomDocType\n<html a="1" b="2" lang="en">&lt;&gt;</html>')
def test_XHTML(self):
# Empty XHTML test