We should consider adding a helper function "`assert_output cmd, output, code=0`".