Since Python 3.3 the unittest module has mock support which completely replaces the seperate mock module.