python-unittest-generator Captures and records function and method calls of your code to be tested, and generates unit test code asserting the observed behavior.