That's not something I would like to see. It's cluttering the code. So it will work indeed but we need better code here. Please change the choices list to a real mapping in the testrun.py file, and build-up the choices for the optparser based on it.