Example #1
0
 def test_cover_cell_and_remove_unwanted_tags(self):
     cell = Cell()
     cell._set_span((2, 2))
     cell._set_covered(True)
     self.assertIsNone(cell.get_attr(CN('table:number-rows-spanned')))
     self.assertIsNone(cell.get_attr(CN('table:number-colums-spanned')))
Example #2
0
 def test_cover_cell_and_remove_unwanted_tags(self):
     cell = Cell()
     cell._set_span((2, 2))
     cell._set_covered(True)
     self.assertIsNone(cell.get_attr(CN('table:number-rows-spanned')))
     self.assertIsNone(cell.get_attr(CN('table:number-colums-spanned')))
Example #3
0
 def test_set_span(self):
     cell = Cell()
     cell._set_span(( 2, 3) )
     self.assertEqual(cell.span, (2, 3))
Example #4
0
 def test_set_span(self):
     cell = Cell()
     cell._set_span((2, 3))
     self.assertEqual(cell.span, (2, 3))