mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-15 21:26:29 +00:00
add one test more
This commit is contained in:
parent
15a8f40f6f
commit
0f54824cdb
@ -43,3 +43,15 @@ def test_list_nested_chain_exception():
|
|||||||
raise KeyError() from err
|
raise KeyError() from err
|
||||||
except KeyError as err:
|
except KeyError as err:
|
||||||
assert check_exception_chain(err, (ValueError, OSError))
|
assert check_exception_chain(err, (ValueError, OSError))
|
||||||
|
|
||||||
|
|
||||||
|
def test_list_nested_chain_exception_not():
|
||||||
|
"""Test list nested chain of excepiton."""
|
||||||
|
|
||||||
|
try:
|
||||||
|
try:
|
||||||
|
raise ValueError()
|
||||||
|
except ValueError as err:
|
||||||
|
raise KeyError() from err
|
||||||
|
except KeyError as err:
|
||||||
|
assert not check_exception_chain(err, (AssertionError, OSError))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user