#NEWLINE# def test_enum_field_del( self ) : #NEWLINE# #INDENT# lamp = Lamp . objects . create ( ) #NEWLINE# del self . state #NEWLINE# self . assertEqual ( lamp . state , None ) #NEWLINE# self . assertRaises ( IntegrityError , lamp . save )