using pytest-mock

fixes #38
Installing pytest-mock in travis
Merge branch 'pytest-mock'