def test_verify_user_delete_when_user_is_not_deleted_returns_false(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
    user_models.CompletedActivitiesModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    user_models.IncompleteActivitiesModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    user_models.LearnerPlaylistModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
def test_verify_user_delete_when_user_is_not_deleted_returns_false(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
    user_models.CompletedActivitiesModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    user_models.IncompleteActivitiesModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    user_models.LearnerPlaylistModel(id=self.user_2_id, exploration_ids=[], collection_ids=[]).put()
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))