#NEWLINE# def test_pos_list_clear_list_with_correct_policy( self ) : #NEWLINE# #INDENT# '\n        Invoke list_clear() removes all list elements with correct policy\n        ' #NEWLINE# key = ( 'test' , 'demo' , 2 ) #NEWLINE# status = self . as_connection . list_clear ( key , 'city' ) #NEWLINE# assert ( status == 0 ) #NEWLINE# ( key , _ , bins ) = self . as_connection . get ( key ) #NEWLINE# assert ( bins == { #NEWLINE# #INDENT# 'city' : [ ] , #NEWLINE# 'contact_no' : [ 2 , 3 ] , #NEWLINE# 'name' : 'name2' , #NEWLINE# #UNINDENT# } )