reportlab/test/test_platypus_paraparser.py
changeset 2664 c9faa3a99e93
parent 2663 927cc273c5a5
child 2724 3ddade273440
equal deleted inserted replaced
2663:927cc273c5a5 2664:c9faa3a99e93
    81         assert fragList[0].text == txt
    81         assert fragList[0].text == txt
    82 
    82 
    83     def testBr(self):
    83     def testBr(self):
    84         txt = u"Hello <br/> World"
    84         txt = u"Hello <br/> World"
    85         fragList = ParaParser().parse(txt, self.style)[1]
    85         fragList = ParaParser().parse(txt, self.style)[1]
    86         print fragList
    86         self.assertEquals(map(lambda x:x.text, fragList), [u'Hello ',u'',u' World'])
    87 ##        self.assertEquals(map(lambda x:x.text, fragList), [u'Hello ',u'Bold',u' World'])
    87         self.assertEquals(fragList[1].lineBreak, True)
    88 ##        self.assertEquals(fragList[1].fontName, 'Times-Bold')
       
    89 
       
    90 
    88 
    91 def makeSuite():
    89 def makeSuite():
    92     return makeSuiteForClasses(ParaParserTestCase)
    90     return makeSuiteForClasses(ParaParserTestCase)
    93 
    91 
    94 
    92