How do you test that a Python function throws an exception?

How does one write a unit test that fails only if a function doesn't throw an expected exception?

← Назад к списку