As local elections approach, the ANC’s weakened position and Johannesburg’s crisis will test whether Ramaphosa can keep the DA in government.