Maybe this isn't important, but the closing brackets of res_expected parameters have line indentation not multiple of four. You just need to remove one space for it.