def test_sum_lengths(simple_xml_and_json_capture):
    """Test to make sure that the right packet length is being read from
       tshark's output by comparing the aggregate length of all packets
       to a known value"""
    total_length = sum(int(packet.length) for packet in simple_xml_and_json_capture)
    assert total_length == 2178
Test to make sure that the right packet length is being read from
       tshark's output by comparing the aggregate length of all packets
       to a known value
tests/test_basic_parsing.py