Johannesburg received a vote of confidence from Moody’s Ratings despite a record of political dysfunction and wasted spending that’s prompted the national government to threaten to withdraw funding.