def test_verify_user_delete_when_external_auth_associations_are_not_deleted(self):
    self.assertFalse(auth_services.verify_external_auth_associations_are_deleted(self.user_1_id))
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    delete_external_auth_associations_swap = self.swap_to_always_return(auth_services, 'delete_external_auth_associations')
    with delete_external_auth_associations_swap:
        wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_1_id))
def test_verify_user_delete_when_external_auth_associations_are_not_deleted(self):
    self.assertFalse(auth_services.verify_external_auth_associations_are_deleted(self.user_1_id))
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    delete_external_auth_associations_swap = self.swap_to_always_return(auth_services, 'delete_external_auth_associations')
    with delete_external_auth_associations_swap:
        wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_1_id))