#NEWLINE# def test_apply_with_bytearray( self ) : #NEWLINE# #INDENT# '\n            Invoke apply() with a bytearray as a argument\n        ' #NEWLINE# key = ( 'test' , 'demo' , 'apply_insert' ) #NEWLINE# TestApply . client . apply ( key , 'udf_basic_ops' , 'create_record' , [ bytearray ( "asd;as[d'as;d" , 'utf-8' ) ] ) #NEWLINE# ( key , _ , bins ) = TestApply . client . get ( key ) #NEWLINE# assert ( bins == { #NEWLINE# #INDENT# 'bin' : bytearray ( b"asd;as[d'as;d" ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# TestApply . client . remove ( bins )