using mock for a test that seems to be screwed up by mockito on python3+