San Francisco's December outage, caused by a fire at PG&E substation, would pose a critical test of leadership for the mayor.