def test_layers(simple_xml_and_json_capture):
    """Test to make sure the correct protocols are reported for known
       packets"""
    packet_indexes = (0, 5, 6, 13, 14, 17, 23)
    test_values = [simple_xml_and_json_capture[i].highest_layer for i in packet_indexes]
    known_values = ['DNS', 'DNS', 'ICMP', 'ICMP', 'TCP', 'HTTP', 'TCP']
    assert test_values == known_values
Test to make sure the correct protocols are reported for known
       packets
tests/test_basic_parsing.py