def testDeleteAccount(self): acc = Account(user="******", passwd="passwd", email="email") acc.save() acc = Account.fetch(user="******") assert acc.user == "user" acc.delete() acc = Account.fetch(user="******") assert acc is None
def _delete_alias(alias): query = Account.delete().where(Account.alias == alias) query.execute()