tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_exceptions.py (338B)


      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)