tests: Make servertest.py friendly to test discovery
tests: Make servertest.py friendly to test discovery

.. by moving code out of module scope and into a function.

defnull/bottle,bottlepy/bottle,bottlepy/bottle,oz123/bottle,fkazimierczak/bottle,fkazimierczak/bottle,oz123/bottle,defnull/bottle