How does a Tory leadership contest work?