mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-07 17:26:32 +00:00
add more test
This commit is contained in:
parent
2ca2701f7a
commit
15a8f40f6f
@ -12,6 +12,15 @@ def test_simple_chain_exception():
|
||||
assert check_exception_chain(err, ValueError)
|
||||
|
||||
|
||||
def test_simple_chain_exception_not():
|
||||
"""Test simple chain of excepiton."""
|
||||
|
||||
try:
|
||||
raise ValueError()
|
||||
except ValueError as err:
|
||||
assert not check_exception_chain(err, KeyError)
|
||||
|
||||
|
||||
def test_simple_nested_chain_exception():
|
||||
"""Test simple nested chain of excepiton."""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user