import unittest
from solution import Solution


class TestCase(unittest.TestCase):

    def setUp(self):
        self.solution = Solution()

    def test_solution(self):
        self.assertEqual(self.solution.longestPalindrome('abcdcbabc'),
            'abcdcba')
        self.assertEqual(self.solution.longestPalindrome('ddabccbaa'), 'abccba'
            )
        self.assertEqual(self.solution.longestPalindrome('abcbabcba'),
            'abcbabcba')
        self.assertEqual(self.solution.longestPalindrome('z' * 1000), 'z' *
            1000)


def test():
    unittest.main()


if __name__ == '__main__':
    test()

3188aee7ac638ae4f4e24904539b8e2f9f237b56
<mask token>


class TestCase(unittest.TestCase):

    def setUp(self):
        self.solution = Solution()

    def test_solution(self):
        self.assertEqual(self.solution.longestPalindrome('abcdcbabc'),
            'abcdcba')
        self.assertEqual(self.solution.longestPalindrome('ddabccbaa'), 'abccba'
            )
        self.assertEqual(self.solution.longestPalindrome('abcbabcba'),
            'abcbabcba')
        self.assertEqual(self.solution.longestPalindrome('z' * 1000), 'z' *
            1000)


<mask token>

<mask token>


class TestCase(unittest.TestCase):

    def setUp(self):
        self.solution = Solution()

    def test_solution(self):
        self.assertEqual(self.solution.longestPalindrome('abcdcbabc'),
            'abcdcba')
        self.assertEqual(self.solution.longestPalindrome('ddabccbaa'), 'abccba'
            )
        self.assertEqual(self.solution.longestPalindrome('abcbabcba'),
            'abcbabcba')
        self.assertEqual(self.solution.longestPalindrome('z' * 1000), 'z' *
            1000)


def test():
    unittest.main()


<mask token>

<mask token>


class TestCase(unittest.TestCase):

    def setUp(self):
        self.solution = Solution()

    def test_solution(self):
        self.assertEqual(self.solution.longestPalindrome('abcdcbabc'),
            'abcdcba')
        self.assertEqual(self.solution.longestPalindrome('ddabccbaa'), 'abccba'
            )
        self.assertEqual(self.solution.longestPalindrome('abcbabcba'),
            'abcbabcba')
        self.assertEqual(self.solution.longestPalindrome('z' * 1000), 'z' *
            1000)


def test():
    unittest.main()


if __name__ == '__main__':
    test()

import unittest
from solution import Solution


class TestCase(unittest.TestCase):

    def setUp(self):
        self.solution = Solution()

    def test_solution(self):
        self.assertEqual(self.solution.longestPalindrome('abcdcbabc'),
            'abcdcba')
        self.assertEqual(self.solution.longestPalindrome('ddabccbaa'), 'abccba'
            )
        self.assertEqual(self.solution.longestPalindrome('abcbabcba'),
            'abcbabcba')
        self.assertEqual(self.solution.longestPalindrome('z' * 1000), 'z' *
            1000)


def test():
    unittest.main()


if __name__ == '__main__':
    test()
