Debian Codegraph @

testing/web-platform/tests/tools/third_party/h2/test/test_exceptions.py

raw
1 # -*- coding: utf-8 -*-
2 """
3 test_exceptions
4 ~~~~~~~~~~~~~~~
5
6 Tests that verify logic local to exceptions.
7 """
8 import h2.exceptions
9
10
11 class TestExceptions(object):
12 def test_stream_id_too_low_prints_properly(self):
13 x = h2.exceptions.StreamIDTooLowError(5, 10)
14
15 assert "StreamIDTooLowError: 5 is lower than 10" == str(x)