mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-16 01:50:39 +00:00
7 lines
156 B
Python
7 lines
156 B
Python
|
from toolz.utils import raises
|
||
|
|
||
|
|
||
|
def test_raises():
|
||
|
assert raises(ZeroDivisionError, lambda: 1 / 0)
|
||
|
assert not raises(ZeroDivisionError, lambda: 1)
|