結果 : assert if exception is thrown python