Exemplo n.º 1
0
	def test_cell_dies_method(self):
		cell = Cell(0, 0, True)
		cell.dies()
		self.assertFalse(cell.is_alive())
Exemplo n.º 2
0
	def test_cell_enliven_method(self):
		cell = Cell(0, 0)
		cell.enliven()
		self.assertTrue(cell.is_alive())
Exemplo n.º 3
0
	def test_toggle_state_method(self):
		cell = Cell(0, 0)
		self.assertFalse(cell.is_alive())
		cell.toggle_state()
		self.assertTrue(cell.is_alive())