def setUp(self):
super(PDUTestCase, self).setUp()
self.community = 'test1212'
self.core_mock = mock.Mock()
self.pdu = self.pdu_class(name='test_pdu', core=self.core_mock)
self.pdu_test_harness = pysnmp_handler.SNMPPDUHarness(
self.pdu,
'127.0.0.1',
random.randint(20000, 30000),
self.community)
self.pdu_test_harness.start()
评论列表
文章目录