def deauthorize(self, auth=None, add_log=True):
        if add_log:
            self.owner.add_log(
                '{0}_node_deauthorized'.format(self.provider_name),
                params={
                    'project': self.owner.parent_id,
                    'node': self.owner._id,
                },
                auth=auth,
            )

        self.clear_settings()
        self.clear_auth()
        self.save()
Basic test for statement declaration
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/citations/models.py/AddonCitationsNodeSettings.deauthorize--crossover with--dataset/ETHPy150Open coursera/dataduct/dataduct/database/sql/tests/test_sql_statement.py/TestSqlStatement.test_basic