def check_observables(self, expected_values: list[dict[str, Any]]):
        """Checks observables against a list of expected values.

        Args:
            expected_values: A list of dictionaries, each containing expected values
                for 'value', 'type', and 'tags' attributes.
        """
        # Allow for indexes to catch up
        time.sleep(1)
        observables = observable.Observable.filter({"value": ""})
        observable_obj, _ = observables
        observable_obj = sorted(observable_obj, key=lambda x: x.value)
        expected_values = sorted(expected_values, key=lambda x: x["value"])

        self.assertEqual(len(observable_obj), len(expected_values))

        for obs, expected_value in zip(observable_obj, expected_values):
            self.assertEqual(obs.value, expected_value["value"])
            self.assertEqual(obs.type, expected_value["type"])
            self.assertEqual({tag.name for tag in obs.tags}, expected_value["tags"])
Checks observables against a list of expected values.

        Args:
            expected_values: A list of dictionaries, each containing expected values
                for 'value', 'type', and 'tags' attributes.
        
tests/helpers.py