The philosopher in Voltaire's Candide. He believes "All is for the best in this best of all possible worlds." Even as he suffers horribly throughout the book, he stands by this concept. By the end of the book, though, he admits "he asserted it still, but he no longer believed it."
See also: panglossian
Bob thinks there's some good that will come out of him failing his English test. He's such a Pangloss. He can't accept it might just be bad.