def check_neighbors(
        self,
        indicator: Optional[ArangoYetiConnector],
        expected_neighbor_values: list[str],
    ):
        """Checks an indicator's neighbors against a list of expected values.

        Args:
            indicator: The indicator.Query object to use for neighbor comparison.
            expected_neighbor_values: A list of expected neighbor values.
        """
        if indicator is None:
            self.assertIsNone(indicator, "Indicator not found in database")
            return

        indicator_neighbors = [
            o.value
            for o in indicator.neighbors()[0].values()
            if isinstance(o, observable.Observable)
        ]

        for expected_value in expected_neighbor_values:
            self.assertIn(expected_value, indicator_neighbors)
Checks an indicator's neighbors against a list of expected values.

        Args:
            indicator: The indicator.Query object to use for neighbor comparison.
            expected_neighbor_values: A list of expected neighbor values.
        
tests/helpers.py