#NEWLINE# def test_list_get_range_with_incorrect_policy( self ) : #NEWLINE# #INDENT# '\n        Invoke list_get_range() with incorrect policy\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 0.5 , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# TestListGetRange . client . list_get_range ( key , 'contact_no' , 0 , 2 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , policy ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( self . msg == 'timeout is invalid' )