示例#1
0
 def test_bad_palindrome(self):
     self.assertFalse(is_palindrome(self.catbird))
示例#2
0
 def test_bad_palindrome(self):
     self.assertFalse(is_palindrome("not_palindrome"))
示例#3
0
 def test_good_palindrome(self):
     self.assertTrue(is_palindrome(self.tacocat))
示例#4
0
 def test_bad_palindrome(self):
     # assertFalse will check if the passed parameter returns False
     # In order to make it true, we have to pass a string that is not a palindrome
     self.assertFalse(is_palindrome("notpalindrome"));
示例#5
0
 def test_good_palindrome(self):
     # assertTrue will check if the passed parameter returns True
     # In order to make it true, we have to pass a string that is a palindrome
     self.assertTrue(is_palindrome("tacocat"));
 def test_bad_palindrome(self):
     self.assertFalse(is_palindrome('cat'))
示例#7
0
 def test_good_palindrome(self):
     assert self.assertTrue(is_palindrome())
示例#8
0
 def test_bad_palindrome(self):
     assert self.assertFalse(is_palindrome())