Extracted the virtualenv setup, dependencies install and test running into a separate function.
Extracted the virtualenv setup, dependencies install and test running into a separate function.

regebro/spiny