def testDelNoteFromModelObjectSYNC(self): host = Host('coco') note = ModelObjectNote("int_mock0") host.addChild(note) self.genericDelTest(host, note, controller.ModelController.delNoteSYNC)
def testDelVulnFromObjectSYNC(self): host = Host('coco') vuln = ModelObjectVuln("int_mock0") host.addChild(vuln) self.genericDelTest(host, vuln, controller.ModelController.delVulnSYNC)
def testDelNoteFromHostSYNC(self): host = Host('coco') note = ModelObjectNote("int_mock0") host.addChild(note) self.genericDelTest(host, note, controller.ModelController.delNoteFromHostASYNC, process_pending=True)
def testDelVulnFromHostASYNC(self): host = Host('coco') vuln = ModelObjectVuln("int_mock0") host.addChild(vuln) self.genericDelTest(host, vuln, controller.ModelController.delVulnFromHostASYNC, process_pending=True)