Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_getting_packet_summary(simple_summary_capture):
assert isinstance(simple_summary_capture[0], PacketSummary)
# Since we cannot check the exact fields since they're dependent on wireshark configuration,
# we'll at least make sure some data is in.
assert simple_summary_capture[0]._fields
def _packet_from_psml_packet(psml_packet, structure):
return PacketSummary(structure, psml_packet.findall('section'))
def _packet_from_psml_packet(psml_packet, structure):
return PacketSummary(structure, psml_packet.findall('section'))