def test_str(self): cell = Cell(0, 0) cell.live() self.assertEqual(u'\u25A0', str(cell)) cell.die() self.assertEqual(u'\u25A1', str(cell))
def test_dead_cells(self): cell = Cell(0, 0) cell.die() self.assertFalse(cell.alive)