ansible-later/testenv/lib/python2.7/site-packages/toolz/tests/test_utils.py

7 lines
156 B
Python
Raw Normal View History

2019-04-23 11:04:27 +00:00
from toolz.utils import raises
def test_raises():
assert raises(ZeroDivisionError, lambda: 1 / 0)
assert not raises(ZeroDivisionError, lambda: 1)