#NEWLINE# def test_array_hook( self ) : #NEWLINE# #INDENT# packed = packb ( [ 1 , 2 , 3 ] ) #NEWLINE# unpacked = unpackb ( packed , list_hook = self . _arr_to_str , use_list = 1 ) #NEWLINE# assert ( unpacked == '123' )