Пример #1
0
 def test_parse_wrong_type(self):
     with self.assertRaisesRegex(ValueError, 'does not contain NTPServerAddressSubOption data'):
         option = NTPServerAddressSubOption()
         option.load_from(b'00020010ff12000000000000000000000000abcd')
Пример #2
0
 def test_parse_wrong_type(self):
     with self.assertRaisesRegex(ValueError, 'does not contain NTPServerAddressSubOption data'):
         option = NTPServerAddressSubOption()
         option.load_from(b'00020010ff12000000000000000000000000abcd')