#NEWLINE# def test_to_dict( self ) : #NEWLINE# #INDENT# self . assertEqual ( util . to_dict ( Iterable ( { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ) , self . encoder ) , { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } ) #NEWLINE# obj = object ( ) #NEWLINE# self . assertRaises ( TypeError , util . to_dict , obj , self . encoder )