Files
30-seconds-of-code/test/palindrome/palindrome.test.py
2018-02-20 14:39:09 +05:30

6 lines
282 B
Python

import types,functools
from pytape import test
from palindrome import palindrome
def palindrome_test(t):
t.true(isinstance(palindrome, (types.BuiltinFunctionType, types.FunctionType, functools.partial)),'palindrome is a function')
test('Testing palindrome',palindrome_test)