The Sri Lanka Guardian has this article by Mo Zhixu, on how China is able to squelch opposition to the ruling party, even in local elections. In China, in theory, voters can cast write-in candidates in local elections, and occasionally are able to nominate independent candidates.