#NEWLINE# def test_field_can_be_set_default( self ) : #NEWLINE# #INDENT# default = object ( ) #NEWLINE# instance = create_instance ( Field ( default = default ) ) #NEWLINE# instance . attr = 1234 #NEWLINE# instance . attr = default #NEWLINE# self . assertEqual ( instance , instance . attr ) #NEWLINE# self . assertFalse ( hasattr ( instance , '_attr' ) )