def test_bad_palindrome(self): self.assertFalse(is_palindrome(self.catbird))
def test_bad_palindrome(self): self.assertFalse(is_palindrome("not_palindrome"))
def test_good_palindrome(self): self.assertTrue(is_palindrome(self.tacocat))
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"));
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'))
def test_good_palindrome(self): assert self.assertTrue(is_palindrome())
def test_bad_palindrome(self): assert self.assertFalse(is_palindrome())