Python's Rec n' Play is a library that helps developers to inspect input and output of functions/methods and write a unit test that reproduces exactly the way that function gets called.