Victoria’s new Liberal leader has survived her first electoral test, with One Nation failing in the Nepean by-election where Labor did not stand.