def test_replace_two_paragraphs_by_new_string(self):
     cell = Cell('test1')
     cell.append(Paragraph('test2'))
     cell.set_value('new content')
     self.assertEqual('new content', cell.value)
Exemple #2
0
 def test_replace_two_paragraphs_by_new_string(self):
     cell = Cell('test1')
     cell.append(Paragraph('test2'))
     cell.set_value('new content')
     self.assertEqual('new content', cell.value)
 def test_append_two_paragraphs(self):
     cell = Cell('test1')
     cell.append(Paragraph('test2'))
     self.assertEqual(cell.plaintext(), 'test1\ntest2')
     self.assertEqual(cell.value, 'test1\ntest2')
Exemple #4
0
 def test_append_two_paragraphs(self):
     cell = Cell('test1')
     cell.append(Paragraph('test2'))
     self.assertEqual(cell.plaintext(), 'test1\ntest2')
     self.assertEqual(cell.value, 'test1\ntest2')