def test_count_packets(simple_xml_and_json_capture):
    """Test to make sure the right number of packets are read from a known
       capture"""
    packet_count = sum(1 for _ in simple_xml_and_json_capture)
    assert packet_count == 24
Test to make sure the right number of packets are read from a known
       capture
tests/test_basic_parsing.py