Fix #11512. Add an initial test suite for the cgitb, providing 75% coverage.

Patch by Robbie Clemons (robquad), produced at the PyCon 2011 sprints.
3 files changed