But the nearest comparable to this contest is the by-election sparked by Tory David Davis who resigned in 2008 as MP for Haltemprice and Howden, in the East Riding of Yorkshire, over the Labour government's plans to detain terror suspects for up to 42 days.