pytest parameterized tests for palindrome function