#NEWLINE# @ skipIf ( ( not configparser . available ) , ( SKIP_MESSAGE % 'configparser' ) ) #NEWLINE# def test_configparser( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'foo' : { #NEWLINE# #INDENT# 'bar' : 'baz' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# serialized = configparser . serialize ( data ) . strip ( ) #NEWLINE# assert ( serialized == '[foo]\nbar = baz' ) , serialized #NEWLINE# deserialized = configparser . deserialize ( serialized ) #NEWLINE# assert ( deserialized == serialized ) , deserialized