#NEWLINE# def test_neg_list_clear_with_nonexistent_bin( self ) : #NEWLINE# #INDENT# '\n        Invoke list_clear() 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 ( exception ) ) ) + '.com' ) #NEWLINE# try : #NEWLINE# #INDENT# self . as_connection . list_clear ( key , bin ) #NEWLINE# #UNINDENT# except e . BinIncompatibleType as exception : #NEWLINE# #INDENT# assert ( exception . code == 12 )