def save_observables_from_str_file_path(self) -> None:
        """Tests saving observables from string file path."""
        filepath = ObservableTest.OBSERVABLE_TEST_DATA_FILE
        observables, unknown = observable.save_from_file(
            filepath, tags=["tag1", "tag2"]
        )
        self.assertEqual(len(observables), 10)
        self.assertEqual(len(unknown), 1)
        for i, (expected_value, expected_class) in enumerate(
            ObservableTest.OBSERVABLE_TEST_DATA_CASES
        ):
            self.assertIsInstance(observables[i], expected_class)
            self.assertIsNotNone(observables[i].id)
            self.assertEqual(observables[i].value, expected_value)
            self.assertEqual(len(observables[i].tags), 2)
            self.assertEqual(observables[i].tags[0].fresh, True)
            self.assertEqual(observables[i].tags[1].fresh, True)
        self.assertEqual(unknown[0], "junk")
Tests saving observables from string file path.
tests/schemas/observable.py