add unit test for catchAndIgnore()

This commit is contained in:
Mike Kinney
2021-12-23 00:40:21 -08:00
parent 276b2762c8
commit cbd41efb19
3 changed files with 17 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ from ..stream_interface import StreamInterface
@pytest.mark.unit
def test_StreamInterface():
"""Test that we can instantiate a StreamInterface"""
"""Test that we cannot instantiate a StreamInterface"""
with pytest.raises(Exception) as pytest_wrapped_e:
StreamInterface(noProto=True)
assert pytest_wrapped_e.type == Exception