#NEWLINE# def test_get_item_id_by_name( self ) : #NEWLINE# #INDENT# list_dict = [ { #NEWLINE# #INDENT# 'name' : 'channel_name' , #NEWLINE# 'id' : '123' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertEqual ( '123' , get_item_id_by_name ( list_dict , 'channel_name' ) )