def test_false(self): for i in [12, 13, 42, 69, 5505]: self.assertFalse(is_pal(i), msg="function returned True, but %d is not pal" %i)
def test_true(self): for i in [9, 11, 121, 4004, 333, 805508]: self.assertTrue(is_pal(i), msg="function returned False, but %d is pal" %i)