It's been one of the most closely watched by-elections in years and is seen as a bellwether for Australian conservative politics.