示例#1
0
 def test_true_2(self):
     self.assertTrue(is_palindrome('Amor, Roma'))
示例#2
0
 def test_true(self):
     self.assertTrue(is_palindrome('race car'))
示例#3
0
 def test_false(self):
     self.assertFalse(is_palindrome(None))
示例#4
0
 def test_false_2(self):
     self.assertFalse(is_palindrome('aaaaza'))
示例#5
0
 def test_true_3(self):
     self.assertTrue(is_palindrome('No \'x\' in Nixon'))