def test_cell_dies_method(self): cell = Cell(0, 0, True) cell.dies() self.assertFalse(cell.is_alive())
def test_cell_enliven_method(self): cell = Cell(0, 0) cell.enliven() self.assertTrue(cell.is_alive())
def test_toggle_state_method(self): cell = Cell(0, 0) self.assertFalse(cell.is_alive()) cell.toggle_state() self.assertTrue(cell.is_alive())