<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiroronn</author_name>
  <author_url>https://blog.hatena.ne.jp/hiroronn/</author_url>
  <blog_title>SE（たぶん）の雑感記</blog_title>
  <blog_url>https://hiroronn.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>小ネタです。 Python標準の単体テストツールunittestですが、テスト対象メソッドが例外を送出するかテストすることもできます。 その方法が他の言語とはちょっと違ったので、書いてみます。 バージョン 対象 バージョン OS Windows 10 Pro 64bit Python 3.7.0 Visual Studio Code 1.27.2 Python(拡張機能) 2018.8.0 テスト対象メソッド 簡単なコードを書きました。 テスト対象（bases.filesモジュール） from os import path import shutil def copy(source: str,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroronn.hatenablog.jp%2Fentry%2F20181004%2F1538611164&quot; title=&quot;Python - unittestで例外発生をテストする - SE（たぶん）の雑感記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hiroronn/20181004/20181004085539.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-04 08:59:24</published>
  <title>Python - unittestで例外発生をテストする</title>
  <type>rich</type>
  <url>https://hiroronn.hatenablog.jp/entry/20181004/1538611164</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
