replaced 'from expected import expected' with that class' code from http://code.activestate.com/recipes/573452-assertion-that-a-code-fragment-throws-a-particular/
replaced 'from expected import expected' with that class' code from http://code.activestate.com/recipes/573452-assertion-that-a-code-fragment-throws-a-particular/

prechelt/typecheck-decorator