a working unit test! mock.patch is weird