Ejemplo n.º 1
0
    def test_bytechunks_quoteattr_cr(self):

        context = dict()
        attrs = dict(char='\r')
        item = (ControlChar, attrs, context)
        modelevents = [(STARTEVENT, item), (ENDEVENT, item)]
        xmlevents = XmlEvents(iter(modelevents))
        xml = ''.join(xmlevents.bytechunks())

        self.assertTrue('
' in xml)
Ejemplo n.º 2
0
    def test_bytechunks_quoteattr_cr(self):

        context = dict()
        attrs = dict(char='\r')
        item = (ControlChar, attrs, context)
        modelevents = [(STARTEVENT, item),
                       (ENDEVENT, item)]
        xmlevents = XmlEvents(iter(modelevents))
        xml = b''.join(xmlevents.bytechunks())

        self.assertTrue(b'
' in xml)
Ejemplo n.º 3
0
    def test_bytechunks_quoteattr_cr(self):
        from hwp5.xmlmodel import XmlEvents
        from hwp5.treeop import STARTEVENT, ENDEVENT
        from hwp5.binmodel import ControlChar

        context = dict()
        attrs = dict(char='\r')
        item = (ControlChar, attrs, context)
        modelevents = [(STARTEVENT, item), (ENDEVENT, item)]
        xmlevents = XmlEvents(iter(modelevents))
        xml = ''.join(xmlevents.bytechunks())

        self.assertTrue('
' in xml)
Ejemplo n.º 4
0
    def test_bytechunks_quoteattr_cr(self):
        from hwp5.xmlmodel import XmlEvents
        from hwp5.treeop import STARTEVENT, ENDEVENT
        from hwp5.binmodel import ControlChar

        context = dict()
        attrs = dict(char='\r')
        item = (ControlChar, attrs, context)
        modelevents = [(STARTEVENT, item),
                       (ENDEVENT, item)]
        xmlevents = XmlEvents(iter(modelevents))
        xml = ''.join(xmlevents.bytechunks())

        self.assertTrue('
' in xml)