Replaced exceptions with console.writelines so that the mocks behave more like normal but still give feedback in the test runner.