Ejemplo n.º 1
0
class TestPalindrome(unittest.TestCase):

    def setUp(self):
        self.palindrome = CustomString("Never odd or even")
        self.no_palindrome = CustomString("How are you?")

    def tearDown(self):
        pass

    def test_palindrome(self):
        self.assertEqual(True, self.palindrome.palindrome())
        self.assertEqual(False, self.no_palindrome.palindrome())
Ejemplo n.º 2
0
 def setUp(self):
     self.palindrome = CustomString("Never odd or even")
     self.no_palindrome = CustomString("How are you?")