def test_frame_load(self):
        self.init_capfile(layers=1)
        for packet in self.capfile.packets:
            for field in ['src', 'dst', 'type', 'payload']:
                self.assertTrue(hasattr(packet.packet, field),
                                'invalid frame!')
Ensure that ethernet frames load from the top level.
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py/TestCase.test_frame_load