Update a mock object for passing nosetests