#NEWLINE# def test_neg_list_size_bin_is_none( self ) : #NEWLINE# #INDENT# '\n        Invoke list_size() with bin is none\n        ' #NEWLINE# key = ( 'test' , 'demo' , 1 ) #NEWLINE# try : #NEWLINE# #INDENT# self . as_connection . list_size ( exception , None ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'Bin name should be of type string' )