Unit testing and mocking in Python
Without a mock:
$ ./test_mymodule.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
With mock:
$ ./test_mymodule_mock.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK