#NEWLINE# def test_string_to_dictionary( self ) : #NEWLINE# #INDENT# input_str = 'key1=value1,key2=value2' #NEWLINE# expected = { #NEWLINE# #INDENT# 'key1' : 'value1' , #NEWLINE# 'key2' : 'value2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( expected , utils . str2dict ( input_str ) )