Пример #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())