We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e574f0d commit 3789435Copy full SHA for 3789435
test/test_hpack.py
@@ -18,6 +18,14 @@
18
from hpack.hpack import _dict_to_iterable, _to_bytes
19
20
21
+def test_to_bytes():
22
+ assert _to_bytes(b"foobar") == b"foobar"
23
+ assert _to_bytes("foobar") == b"foobar"
24
+ assert _to_bytes(0xABADBABE) == b'2880289470'
25
+ assert _to_bytes(True) == b'True'
26
+ assert _to_bytes(Encoder()).startswith(b"<hpack.hpack.Encoder")
27
+
28
29
class TestHPACKEncoder:
30
# These tests are stolen entirely from the IETF specification examples.
31
def test_literal_header_field_with_indexing(self):
0 commit comments