when I say hoped, Nagato couldve died anytime after he gave him the rinnegan. There was no telling that he couldve made it to adulthood, let alone being trained by jiraiya. Heck, what if orochimaru decided to chill with jiraiya a little bit after the war, and he saw nagato had the rinnegan. Theres alot of factors that madara couldnt controlHoped for the best? How much hope do you need to do when Madara/Tobi can basically control the actions of others.
Its more likely he planned ahead and either influence or directly pushed events into turning out the way they did.