Seems like subprocess and friends (Popen, communicate) are not so easy to mock cleanly. Therefore, start from scratch and carefully write test by test, until (at least) the old test coverage has been restored.
I finally *really* need to get started on testing. I've had too many releases in too short time intervals now, all because of small bugs/oversights.