#NEWLINE# def test_pos_list_insert_with_nonexistent_bin( self ) : #NEWLINE# #INDENT# '\n        Invoke list_insert() with non-existent bin\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# charSet = 'abcdefghijklmnopqrstuvwxyz1234567890' #NEWLINE# minLength = 5 #NEWLINE# maxLength = 10 #NEWLINE# length = random . randint ( minLength , maxLength ) #NEWLINE# bin = ( '' . join ( map ( ( lambda unused : random . choice ( charSet ) ) , range ( length ) ) ) + '.com' ) #NEWLINE# status = self . as_connection . list_insert ( key , bin , 3 , 585 ) #NEWLINE# assert ( status == 0 ) #NEWLINE# ( key , _ , bins ) = self . as_connection . get ( key ) #NEWLINE# assert ( status == 0 ) #NEWLINE# assert ( bins == { #NEWLINE# #INDENT# 'age' : [ 1 , 2 ] , #NEWLINE# 'name' : 'name1' , #NEWLINE# 'city' : [ 'Pune' , 'Dehli' ] , #NEWLINE# bin : [ None , None , None , 585 ] , #NEWLINE# #UNINDENT# } )