def test_set_cell_formula_with_empty_string_should_do_nothing_if_no_preexisting_internal_contents( self): ws = Worksheet() ws.set_cell_formula(1, 2, "") self.assertFalse((1, 2) in ws)
def test_set_cell_formula_with_empty_string_should_clear_internal_contents_if_they_exist( self): ws = Worksheet() ws[1, 2].formula = "=1" ws.set_cell_formula(1, 2, "") self.assertFalse((1, 2) in ws)
def test_set_cell_formula_with_value_should_update_internal_contents(self): ws = Worksheet() ws.set_cell_formula(1, 2, "3") self.assertEquals(ws[1, 2].formula, '3')
def test_set_cell_formula_with_empty_string_should_do_nothing_if_no_preexisting_internal_contents(self): ws = Worksheet() ws.set_cell_formula(1, 2, "") self.assertFalse((1, 2) in ws)
def test_set_cell_formula_with_empty_string_should_clear_internal_contents_if_they_exist(self): ws = Worksheet() ws[1, 2].formula = "=1" ws.set_cell_formula(1, 2, "") self.assertFalse((1, 2) in ws)