virtual env and mock class