def is_bin_palindrome(num): return is_palindrome(int(to_binary_str(num)))
def is_both_palindrome(num): return is_palindrome(num) and is_bin_palindrome(num)
def test_is_palindrome_zero(self): self.assertEqual(is_palindrome("o"), True)
def test_is_palindrome_positive_even(self): self.assertEqual(is_palindrome("osso"), True)
def test_is_palindrome_negative_odd(self): self.assertEqual(is_palindrome("lavas"), False)
def test_is_palindrome_negative_even(self): self.assertEqual(is_palindrome("oslo"), False)
def test_is_palindrome_positive_odd(self): self.assertEqual(is_palindrome("laval"), True)