#NEWLINE# def test_neg_exists_many_with_invalid_key( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . as_connection . exists_many ( 'key' ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'Keys should be specified as a list or tuple.' )