def test_icmp(simple_xml_and_json_capture):
    """Test to make sure ICMP fields are being read properly by comparing
       packet dissection results to known values"""
    packet = simple_xml_and_json_capture[11]
    # The value returned by tshark is locale-dependent.
    # Depending on the locale, a comma can be used instead of a dot
    # as decimal separator.
    resptime = packet.icmp.resptime.replace(',', '.')
    assert resptime == '1.667'
Test to make sure ICMP fields are being read properly by comparing
       packet dissection results to known values
tests/test_basic_parsing.py