def test_single_character(self):
     """
     Test for a single character palindrome.
     """
     actual = choosing_test_cases.is_palindrome('a')
     expected = True
     self.assertEqual(actual, expected)
 def test_two_characters_palindrome(self):
     """
     Test for two characters, not a palindrome.
     """
     actual = choosing_test_cases.is_palindrome('aa')
     expected = True
     self.assertEqual(actual, expected)
 def test_empty_string(self):
     """
     Test for an empty string.
     """
     actual = choosing_test_cases.is_palindrome('')
     expected = True
     self.assertEqual(actual, expected)
 def test_odd_numbered_string_not_palindrome(self):
     """
     Test for a longer string with an odd number of characters that is not a palindrome.
     """
     actual = choosing_test_cases.is_palindrome('bananas')
     expected = False
     self.assertEqual(actual, expected)
 def test_odd_numbered_string_palindrome(self):
     """
     Test for a longer string with an odd number of characters that is a palindrome.
     """
     actual = choosing_test_cases.is_palindrome('racecar')
     expected = True
     self.assertEqual(actual, expected)
 def test_three_characters_not_palindrome(self):
     """
     Test for three-character string that is not a palindrome.
     """
     actual = choosing_test_cases.is_palindrome('abc')
     expected = False
     self.assertEqual(actual, expected)
 def test_three_characters_palindrome(self):
     """
     Test for a three-character palindrome.
     """
     actual = choosing_test_cases.is_palindrome('aba')
     expected = True
     self.assertEqual(actual, expected)