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

        styles = getDefaultStyleSheet()
        self.story = []
        self.story.append(Paragraph("This is a first paragraph", styles.P))
        self.story.append(
            Paragraph("This is <i>another</i> paragraph.", styles.P))

        self.assertEqual(len(self.story), 2)
Ejemplo n.º 2
0
   def setUp(self):
      
      styles = getDefaultStyleSheet()
      self.story = []
      self.story.append(
         Paragraph("This is a first paragraph",styles.P))
      self.story.append(
         Paragraph("This is <i>another</i> paragraph.", styles.P))

      self.assertEqual(len(self.story),2)
Ejemplo n.º 3
0
 def __init__(self, stylesheet=None, **kw):
     if stylesheet is None:
         stylesheet = styles.getDefaultStyleSheet()
     html.Document.__init__(self, stylesheet=stylesheet, **kw)
Ejemplo n.º 4
0
 def __init__(self, stylesheet=None, **kw):
     if stylesheet is None:
         stylesheet = styles.getDefaultStyleSheet()
     html.Document.__init__(self, stylesheet=stylesheet, **kw)