make nose_runner exit cleanly
use mock.patch.object
use mock.patch.object