def test_openapi_toolset_tool_non_existing(openapi_spec: Dict):
  """Test the tool() method for a non-existing tool."""
  toolset = OpenAPIToolset(spec_dict=openapi_spec)
  tool = toolset.get_tool("non_existent_tool")
  assert tool is None
Test the tool() method for a non-existing tool.
tests/unittests/tools/openapi_tool/openapi_spec_parser/test_openapi_toolset.py