#NEWLINE# def test_node_to_dict( self ) : #NEWLINE# #INDENT# nd = fakes . FakeNode ( ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'address' : nd . address , #NEWLINE# 'port' : nd . port , #NEWLINE# 'condition' : nd . condition , #NEWLINE# 'type' : nd . type , #NEWLINE# 'id' : nd . id , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( nd . to_dict ( ) , expected )