Foes of the Kremlin rarely get a chance to run for office in Russia, so liberal opposition leader Boris Nemtsov's campaign in this resort city's mayoral election Sunday has tested the willingness of President Dmitry Medvedev to open up the system.