def test_delete_indexed_column(self): s = Sheet(self.data, "test") s.name_columns_by_row(0) s.delete_named_column_at(1) assert s.number_of_columns() == 2 s.column["Column 2"] # access it after deletion, bang
def test_delete_named_column(self): s = Sheet(self.data, "test") s.name_columns_by_row(0) del s.column["Column 2"] assert s.number_of_columns() == 2 s.column["Column 2"] # bang
def test_delete_column(self): s = Sheet(self.data, "test") del s.column[1, 2] assert s.number_of_columns() == 1 s.column["Column 2"] # access it after deletion, bang