def test_toggle_state_method(self): cell = Cell(0, 0) self.assertFalse(cell.is_alive()) cell.toggle_state() self.assertTrue(cell.is_alive())