Streamlined assertRaises invocations.