mock is now part of unittest with Python 3.3+ and should be used from there. Do you wish to still support Python < 3.3?