

def test_frame_load(self):
    '\n        Ensure that ethernet frames load from the top level.\n        '
    self.init_capfile(layers=1)
    for packet in self.capfile.packets:
        for field in ['src', 'dst', 'type', 'payload']:
            self.assertTrue(hasattr(packet.packet, packet), 'invalid frame!')

dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py TestCase.test_frame_load/VarMisuse@57/97 `field`->`packet`