#NEWLINE# def test_enum_field_init( self ) : #NEWLINE# #INDENT# field = EnumField ( PersonStatus ) #NEWLINE# self . assertEqual ( field . default , PersonStatus . UNBORN ) #NEWLINE# self . assertEqual ( len ( PersonStatus . choices ( ) ) , len ( field . choices ) ) #NEWLINE# field = EnumField ( PersonStatus , default = PersonStatus . ALIVE ) #NEWLINE# self . assertEqual ( field . default , PersonStatus . ALIVE ) #NEWLINE# field = EnumField ( PersonStatus , default = None ) #NEWLINE# self . assertEqual ( field . default , None )