def test_create_poller(self): hap = hap2_nagios_ndoutils.Hap2NagiosNDOUtils() kwargs = {"sender": None, "process_id": ""} poller = hap.create_poller(**kwargs) expect_class = hap2_nagios_ndoutils.Hap2NagiosNDOUtilsPoller self.assertTrue(isinstance(poller, expect_class))
def test_create_main_plugin(self): hap = hap2_nagios_ndoutils.Hap2NagiosNDOUtils() main_plugin = hap.create_main_plugin() expect_class = hap2_nagios_ndoutils.Hap2NagiosNDOUtilsMain self.assertTrue(isinstance(main_plugin, expect_class))