@@ -595,17 +595,14 @@ def test_literal_header_field_without_indexing(self):
595595 def test_indexed_header_field (self ):
596596 """
597597 The header field representation uses an indexed header field, from
598- the static table. Upon using it, the static table entry is copied
599- into the header table.
598+ the static table.
600599 """
601600 e = Encoder ()
602601 header_set = {':method' : 'GET' }
603602 result = b'\x82 '
604603
605604 assert e .encode (header_set , huffman = False ) == result
606- assert list (e .header_table ) == [
607- (n .encode ('utf-8' ), v .encode ('utf-8' )) for n , v in header_set .items ()
608- ]
605+ assert list (e .header_table ) == []
609606
610607 def test_indexed_header_field_from_static_table (self ):
611608 e = Encoder ()
@@ -811,17 +808,14 @@ def test_literal_header_field_without_indexing(self):
811808 def test_indexed_header_field (self ):
812809 """
813810 The header field representation uses an indexed header field, from
814- the static table. Upon using it, the static table entry is copied
815- into the header table.
811+ the static table.
816812 """
817813 d = Decoder ()
818814 header_set = [(':method' , 'GET' )]
819815 data = b'\x82 '
820816
821817 assert d .decode (data ) == header_set
822- assert list (d .header_table ) == [
823- (n .encode ('utf-8' ), v .encode ('utf-8' )) for n , v in header_set
824- ]
818+ assert list (d .header_table ) == []
825819
826820 def test_request_examples_without_huffman (self ):
827821 """
0 commit comments