test: Don't use inline if/else syntax

Looks like python-2.6 doesn't understand it