def test_scanLogEvent_should_create_a_scan_log_event(self): """ Test scanLogEvent(self, instanceId, classification, message, component=None) """ sfdb = SpiderFootDb(self.default_options, False) sfdb.scanLogEvent("", "", "", None) self.assertEqual('TBD', 'TBD')
def test_scanLogEvent_argument_instanceId_of_invalid_type_should_raise_TypeError(self): """ Test scanLogEvent(self, instanceId, classification, message, component=None) """ sfdb = SpiderFootDb(self.default_options, False) invalid_types = [None, list(), dict(), int()] for invalid_type in invalid_types: with self.subTest(invalid_type=invalid_type): with self.assertRaises(TypeError): sfdb.scanLogEvent(invalid_type, "", "")