Ejemplo n.º 1
0
 def test_populate_without_body(self):
     item = {}
     item = populate(item)
     self.assertEqual(item['abstract'],
                      'No body found to use for abstract...')
Ejemplo n.º 2
0
 def test_populate(self):
     item = {'body_html': self.body}
     item = populate(item)
     self.assertEqual(
         item['abstract'],
         'Fountain of Time, or simply Time, is a sculpture by Lorado Taft,')
 def test_populate_without_body(self):
     item = {}
     item = populate(item)
     self.assertEqual(item['abstract'], 'No body found to use for abstract...')
Ejemplo n.º 4
0
 def test_populate(self):
     item = {"body_html": self.body}
     item = populate(item)
     self.assertEqual(item["abstract"], "Fountain of Time, or simply Time, is a sculpture by Lorado Taft,")
 def test_populate(self):
     item = {'body_html': self.body}
     item = populate(item)
     self.assertEqual(item['abstract'], 'Fountain of Time, or simply Time, is a sculpture by Lorado Taft,')