#NEWLINE# def test_hard_deletion_of_collections( self ) : #NEWLINE# #INDENT# 'Test that hard deletion of collections works correctly.' #NEWLINE# self . save_new_default_collection ( collection . COLLECTION_ID , self . owner_id ) #NEWLINE# self . assertEqual ( _count_at_least_editable_collection_summaries ( self . owner_id ) , 1 ) #NEWLINE# collection_services . delete_collection ( self . owner_id , self . COLLECTION_ID , force_deletion = True ) #NEWLINE# with self . assertRaises ( Exception ) : #NEWLINE# #INDENT# collection_services . get_collection_by_id ( self . COLLECTION_ID ) #NEWLINE# #UNINDENT# self . assertEqual ( _count_at_least_editable_collection_summaries ( self . owner_id ) , 0 ) #NEWLINE# self . assertNotIn ( self . COLLECTION_ID , [ collection . id for collection in collection_models . CollectionModel . get_all ( include_deleted_entities = True ) ] )