def test_search_query_CanAcceptDifferentSearchMethods(self):
        """Test that the SearchQuery can accept different search methods."""
        valid_search_methods = [
            ("lexical", SearchMethod.LEXICAL, "lowercase lexical"),
            ("teNsor", SearchMethod.TENSOR, "mixed case tensor"),
            ("hybrid", SearchMethod.HYBRID, "mixed case hybrid"),
            (None, SearchMethod.TENSOR, "None"),
        ]
        for search_method, expected_search_method, search_method_type in valid_search_methods:
            with self.subTest(search_method_type=search_method_type):
                search_query = SearchQuery(q="test", searchMethod=search_method)
                self.assertEqual(expected_search_method, search_query.searchMethod)

        # A special case for no search method provided
        search_query = SearchQuery(q="test")
        self.assertEqual(SearchMethod.TENSOR, search_query.searchMethod)
Test that the SearchQuery can accept different search methods.
tests/integ_tests/tensor_search/models/test_api_models.py