'Sanity-check that teams and balance have been dealt with.'

def final_check(self, cursor, require_zero_balance=True):

    if self.get_teams(cursor=cursor, only_open=True):
        raise self.StillOnATeam
    if (require_zero_balance and (self.balance != 0)):
        raise self.BalanceIsNotZero
