Example #1
0
 def test_bad_palindrome(self):
     self.assertFalse(is_palindrome(self.catbird))
Example #2
0
 def test_bad_palindrome(self):
     self.assertFalse(is_palindrome("not_palindrome"))
Example #3
0
 def test_good_palindrome(self):
     self.assertTrue(is_palindrome(self.tacocat))
Example #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"));
Example #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'))
Example #7
0
 def test_good_palindrome(self):
     assert self.assertTrue(is_palindrome())
Example #8
0
 def test_bad_palindrome(self):
     assert self.assertFalse(is_palindrome())