#NEWLINE# def test_list_pop_key_is_none( self ) : #NEWLINE# #INDENT# '\n        Invoke list_pop() with key is none\n        ' #NEWLINE# try : #NEWLINE# #INDENT# TestListPop . client . list_pop ( None , 'contact_no' , 0 ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'key is invalid' )