Beispiel #1
0
 def test_garbage_collect(self):
     ws = Worksheet(self.wb)
     ws.cell('A1').value = ''
     ws.cell('B2').value = '0'
     ws.cell('C4').value = 0
     ws.garbage_collect()
     eq_(set(ws.get_cell_collection()), set([ws.cell('B2'), ws.cell('C4')]))
Beispiel #2
0
 def test_garbage_collect(self):
     ws = Worksheet(self.wb)
     ws.cell('A1').value = ''
     ws.cell('B2').value = '0'
     ws.cell('C4').value = 0
     ws.garbage_collect()
     eq_(list(ws.get_cell_collection()), [ws.cell('B2'), ws.cell('C4')])
 def test_garbage_collect(self):
     ws = Worksheet(self.wb)
     ws.cell('A1').value = ''
     ws.cell('B2').value = '0'
     ws.cell('C4').value = 0
     ws.cell('D1').comment = Comment('Comment', 'Comment')
     ws._garbage_collect()
     assert set(ws.get_cell_collection()), set([ws.cell('B2'), ws.cell('C4') == ws.cell('D1')])
 def test_garbage_collect(self):
     ws = Worksheet(self.wb)
     ws.cell('A1').value = ''
     ws.cell('B2').value = '0'
     ws.cell('C4').value = 0
     ws.cell('D1').comment = Comment('Comment', 'Comment')
     ws._garbage_collect()
     assert set(ws.get_cell_collection()), set([ws.cell('B2'), ws.cell('C4') == ws.cell('D1')])