File: test_exceptions.py

package info (click to toggle)
python-h2 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,652 kB
  • sloc: python: 11,141; makefile: 14; sh: 12
file content (13 lines) | stat: -rw-r--r-- 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Tests that verify logic local to exceptions.
"""
from __future__ import annotations

import h2.exceptions


class TestExceptions:
    def test_stream_id_too_low_prints_properly(self) -> None:
        x = h2.exceptions.StreamIDTooLowError(5, 10)

        assert str(x) == "StreamIDTooLowError: 5 is lower than 10"