def test_indexed_header_field_from_static_table(self): e = Encoder() e.header_table_size = 0 header_set = {':method': 'GET'} result = b'\x82' # Make sure we don't emit an encoding context update. e._table_size_changed = False assert e.encode(header_set, huffman=False) == result assert list(e.header_table) == []