

def test_header_valid(self):
    '\n        Test to ensure the header validation code works.\n        '
    header = self.capfile.header
    self.assertEqual(header.major, 2, 'invalid major version!')
    self.assertEqual(header.minor, 4, 'invalid minor version!')

dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py TestCase.test_header_valid/original