Thsi should be a more useful assertion, e.g. `assert exc_info.type is UnsupportedAlgorithm`.