def test_create_observables_from_str_file_path(self) -> None:
        """Tests creating observables string from file path."""
        filepath = ObservableTest.OBSERVABLE_TEST_DATA_FILE
        observables, unknown = observable.create_from_file(file=filepath)
        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.assertIsNone(observables[i].id)
            self.assertEqual(observables[i].value, expected_value)
            self.assertEqual(len(observables[i].tags), 0)
        self.assertEqual(unknown[0], "junk")
Tests creating observables string from file path.
tests/schemas/observable.py