def test_pre_delete_user_collection_is_marked_deleted(self):
    self.save_new_valid_collection('col_id', self.user_1_id)
    collection_model = collection_models.CollectionModel.get_by_id('col_id')
    self.assertFalse(collection_model.deleted)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNone(collection_models.CollectionModel.get_by_id('col_id'))
def test_pre_delete_user_collection_is_marked_deleted(self):
    self.save_new_valid_collection('col_id', self.user_1_id)
    collection_model = collection_models.CollectionModel.get_by_id('col_id')
    self.assertFalse(collection_model.deleted)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNone(collection_models.CollectionModel.get_by_id('col_id'))