mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 10:59:43 +00:00
add more test
This commit is contained in:
@@ -12,6 +12,15 @@ def test_simple_chain_exception():
|
|||||||
assert check_exception_chain(err, ValueError)
|
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():
|
def test_simple_nested_chain_exception():
|
||||||
"""Test simple nested chain of excepiton."""
|
"""Test simple nested chain of excepiton."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user