def test_scanElementChildrenDirect_argument_elementIdList_of_invalid_type_should_raise_TypeError(self): """ Test scanElementChildrenDirect(self, instanceId, elementIdList) """ sfdb = SpiderFootDb(self.default_options, False) instance_id = "example instance id" invalid_types = [None, "", dict()] for invalid_type in invalid_types: with self.subTest(invalid_type=invalid_type): with self.assertRaises(TypeError): sfdb.scanElementChildrenDirect(instance_id, invalid_type)
def test_scanElementChildrenDirect_should_return_a_list(self): """ Test scanElementChildrenDirect(self, instanceId, elementIdList) """ sfdb = SpiderFootDb(self.default_options, False) instance_id = "example instance id" scan_element_children_direct = sfdb.scanElementChildrenDirect(instance_id, list()) self.assertIsInstance(scan_element_children_direct, list) self.assertEqual('TBD', 'TBD')