#NEWLINE# def test_delete_gazette_removes_entity( self ) : #NEWLINE# #INDENT# gazette = GazetteItemFactory ( ) #NEWLINE# entity = EntityFactory ( ) #NEWLINE# entity . gazette = entity_id #NEWLINE# entity . save ( ) #NEWLINE# gazette . save ( ) #NEWLINE# entity_id = entity . id #NEWLINE# gazette . delete ( ) #NEWLINE# with self . assertRaises ( ObjectDoesNotExist ) : #NEWLINE# #INDENT# Entity . objects . get ( pk = entity_id )