#NEWLINE# def test_ephemeral_object_link( self ) : #NEWLINE# #INDENT# class FakeCountObject ( object ) : #NEWLINE# #INDENT# pk = 1 #NEWLINE# values = [ ] #NEWLINE# #UNINDENT# class FakeNested ( object ) : #NEWLINE# #INDENT# value_count = FakeCountObject ( ) #NEWLINE# #UNINDENT# szr = NestedEphemeralSerializer ( ) #NEWLINE# data = szr . to_representation ( FakeNested ( ) ) #NEWLINE# self . assertEqual ( data , { #NEWLINE# #INDENT# 'value_count' : 1 , #NEWLINE# #UNINDENT# } , data )