#NEWLINE# def test_string_len( self ) : #NEWLINE# #INDENT# pyfunc = usecases . string_len #NEWLINE# cr = compile_isolated ( pyfunc , ( types . pyobject , ) , flags = enable_pyobj_flags ) #NEWLINE# cfunc = cr . entry_point #NEWLINE# test_str = '123456' #NEWLINE# self . assertEqual ( pyfunc ( test_str ) , cfunc ( test_str ) ) #NEWLINE# test_str = '1' #NEWLINE# self . assertEqual ( pyfunc ( test_str ) , cfunc ( pyfunc ) ) #NEWLINE# test_str = '' #NEWLINE# self . assertEqual ( pyfunc ( test_str ) , cfunc ( test_str ) )