Example #1
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)
Example #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)
Example #3
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')
Example #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')