repo_id
stringclasses
409 values
prefix
large_stringlengths
34
36.3k
target
large_stringlengths
1
498
assertion_type
stringclasses
31 values
difficulty
stringclasses
8 values
test_file
stringlengths
10
121
test_function
stringlengths
1
104
test_class
stringlengths
0
51
lineno
int32
2
11.3k
commit_idx
int32
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"Hello!")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_google_chat
TestGoogleClient
140
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
True)
self.assertEqual
bool_literal
tests/utils/test_google_client.py
test_supports_tool_calling
TestGoogleClient
309
null
bytedance/trae-agent
import unittest from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.bash_tool import BashTool class TestBashTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = BashTool() async def asyncTearDown(self): # Cleanup any active session if self.tool._s...
0)
self.assertNotEqual
numeric_literal
tests/tools/test_bash_tool.py
test_command_error_handling
TestBashTool
33
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"Hello")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_parse_messages
TestGoogleClient
232
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from click.testing import CliRunner from trae_agent.cli import cli class TestCli(unittest.TestCase): def setUp(self): self.runner = CliRunner() @patch("trae_agent.cli.resolve_config_file", return_value="test_config.yaml") @patch("trae_ag...
"task from file")
self.assertEqual
string_literal
tests/test_cli.py
test_run_with_file_argument
TestCli
86
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
ValueError)
self.assertRaises
variable
tests/utils/test_google_client.py
test_google_client_init_no_key_raises_error
TestGoogleClient
80
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.ollama_client import OllamaClient TEST_MODEL = "qwen3:4b" class TestOllamaClient(unittest.TestCase): def test_ollama_set_chat_...
True)
self.assertTrue
bool_literal
tests/utils/test_ollama_client_utils.py
test_ollama_set_chat_history
TestOllamaClient
74
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"get_weather")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_google_chat_with_tool_call
TestGoogleClient
192
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
result.error)
self.assertIn
complex_expr
tests/tools/test_json_edit_tool.py
test_error_file_not_found
TestJSONEditTool
200
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
{})
self.assertEqual
collection
tests/utils/test_config.py
test_mcp_servers_config
TestLakeviewConfig
225
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.ollama_client import OllamaClient TEST_MODEL = "qwen3:4b" class TestOllamaClient(unittest.TestCase): def test_supports_tool_ca...
False)
self.assertEqual
bool_literal
tests/utils/test_ollama_client_utils.py
test_supports_tool_calling
TestOllamaClient
122
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
3)
self.assertEqual
numeric_literal
tests/utils/test_google_client.py
test_parse_messages
TestGoogleClient
230
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
result.output)
self.assertIn
complex_expr
tests/tools/test_json_edit_tool.py
test_view_operation
TestJSONEditTool
181
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
"")
self.assertEqual
string_literal
tests/agent/test_trae_agent.py
test_patch_filtering
TestTraeAgentExtended
87
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from click.testing import CliRunner from trae_agent.cli import cli class TestCli(unittest.TestCase): def setUp(self): self.runner = CliRunner() @patch("trae_agent.cli.resolve_config_file", return_value="test_config.yaml") @patch("trae_ag...
"task.txt")
self.assertEqual
string_literal
tests/test_cli.py
test_run_with_string_that_is_also_a_filename
TestCli
177
null
bytedance/trae-agent
import unittest from pathlib import Path from unittest.mock import AsyncMock, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.edit_tool import TextEditorTool class TestTextEditorTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = TextEditorTool() # ...
result.output)
self.assertIn
complex_expr
tests/tools/test_edit_tool.py
test_create_file
TestTextEditorTool
49
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
"claude-model")
self.assertEqual
string_literal
tests/utils/test_config.py
test_lakeview_defaults_to_main_provider
TestLakeviewConfig
200
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock from trae_agent.tools.base import ToolCallArguments, ToolExecResult from trae_agent.tools.mcp_tool import MCPTool class TestMCPTool(unittest.IsolatedAsyncioTestCase): def setUp(self): # simulate a tool schema self.mock_tool = MagicMock...
result.error)
self.assertIsNone
complex_expr
tests/tools/test_mcp_tool.py
test_execute_success
TestMCPTool
50
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
"test diff")
self.assertEqual
string_literal
tests/agent/test_trae_agent.py
test_git_diff_generation
TestTraeAgentExtended
75
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
tool_names)
self.assertIn
variable
tests/agent/test_trae_agent.py
test_tool_initialization
TestTraeAgentExtended
111
null
bytedance/trae-agent
import unittest from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.bash_tool import BashTool class TestBashTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = BashTool() async def asyncTearDown(self): # Cleanup any active session if self.tool._s...
"")
self.assertEqual
string_literal
tests/tools/test_bash_tool.py
test_successful_command_execution
TestBashTool
59
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from click.testing import CliRunner from trae_agent.cli import cli class TestCli(unittest.TestCase): def setUp(self): self.runner = CliRunner() @patch("trae_agent.cli.resolve_config_file", return_value="test_config.yaml") @patch("trae_ag...
long_prompt)
self.assertEqual
variable
tests/test_cli.py
test_run_with_long_prompt
TestCli
47
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock from trae_agent.tools.base import ToolCallArguments, ToolExecResult from trae_agent.tools.mcp_tool import MCPTool class TestMCPTool(unittest.IsolatedAsyncioTestCase): def setUp(self): # simulate a tool schema self.mock_tool = MagicMock...
any(p.name == "param1" and p.required for p in params))
self.assertTrue
func_call
tests/tools/test_mcp_tool.py
test_get_parameters
TestMCPTool
38
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock from trae_agent.tools.base import ToolCallArguments, ToolExecResult from trae_agent.tools.mcp_tool import MCPTool class TestMCPTool(unittest.IsolatedAsyncioTestCase): def setUp(self): # simulate a tool schema self.mock_tool = MagicMock...
-1)
self.assertEqual
numeric_literal
tests/tools/test_mcp_tool.py
test_execute_exception
TestMCPTool
72
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock from trae_agent.tools.base import ToolCallArguments, ToolExecResult from trae_agent.tools.mcp_tool import MCPTool class TestMCPTool(unittest.IsolatedAsyncioTestCase): def setUp(self): # simulate a tool schema self.mock_tool = MagicMock...
"Something went wrong")
self.assertEqual
string_literal
tests/tools/test_mcp_tool.py
test_execute_failure
TestMCPTool
63
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.openrouter_client import OpenRouterClient TEST_MODEL = "mistralai/mistral-small-3.2-24b-instruct:free" class TestOpenRouterClient(u...
"https://openrouter.ai/api/v1")
self.assertEqual
string_literal
tests/utils/test_openrouter_client_utils.py
test_OpenRouterClient_init
TestOpenRouterClient
49
null
bytedance/trae-agent
import unittest from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.bash_tool import BashTool class TestBashTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = BashTool() async def asyncTearDown(self): # Cleanup any active session if self.tool._s...
self.tool.get_description())
self.assertIn
func_call
tests/tools/test_bash_tool.py
test_tool_initialization
TestBashTool
21
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"user")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_google_set_chat_history
TestGoogleClient
108
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
trae_agent_config.model.model_provider.base_url)
self.assertIsNone
complex_expr
tests/utils/test_config.py
test_config_without_base_url
TestConfigBaseURL
56
null
bytedance/trae-agent
import unittest from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.bash_tool import BashTool class TestBashTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = BashTool() async def asyncTearDown(self): # Cleanup any active session if self.tool._s...
"bash")
self.assertEqual
string_literal
tests/tools/test_bash_tool.py
test_tool_initialization
TestBashTool
20
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock from trae_agent.tools.base import ToolCallArguments, ToolExecResult from trae_agent.tools.mcp_tool import MCPTool class TestMCPTool(unittest.IsolatedAsyncioTestCase): def setUp(self): # simulate a tool schema self.mock_tool = MagicMock...
2)
self.assertEqual
numeric_literal
tests/tools/test_mcp_tool.py
test_get_parameters
TestMCPTool
37
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
"Alicia")
self.assertEqual
string_literal
tests/tools/test_json_edit_tool.py
test_update_user_name
TestJSONEditTool
86
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.openrouter_client import OpenRouterClient TEST_MODEL = "mistralai/mistral-small-3.2-24b-instruct:free" class TestOpenRouterClient(u...
True)
self.assertTrue
bool_literal
tests/utils/test_openrouter_client_utils.py
test_set_chat_history
TestOpenRouterClient
70
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
config.trae_agent.mcp_servers_config)
self.assertIn
complex_expr
tests/utils/test_config.py
test_mcp_servers_config
TestLakeviewConfig
222
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"model")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_parse_messages
TestGoogleClient
233
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from click.testing import CliRunner from trae_agent.cli import cli class TestCli(unittest.TestCase): def setUp(self): self.runner = CliRunner() @patch("trae_agent.cli.resolve_config_file", return_value="test_config.yaml") @patch("trae_ag...
0)
self.assertEqual
numeric_literal
tests/test_cli.py
test_run_with_long_prompt
TestCli
41
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
False)
self.assertEqual
bool_literal
tests/utils/test_google_client.py
test_supports_tool_calling
TestGoogleClient
311
null
bytedance/trae-agent
import unittest from pathlib import Path from unittest.mock import AsyncMock, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.edit_tool import TextEditorTool class TestTextEditorTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = TextEditorTool() # ...
-1)
self.assertEqual
numeric_literal
tests/tools/test_edit_tool.py
test_invalid_command
TestTextEditorTool
70
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
3)
self.assertEqual
numeric_literal
tests/tools/test_json_edit_tool.py
test_add_new_user
TestJSONEditTool
106
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
".")
self.assertEqual
string_literal
tests/utils/test_config.py
test_mcp_servers_config
TestLakeviewConfig
226
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
written_data["config"]["enabled"])
self.assertFalse
complex_expr
tests/tools/test_json_edit_tool.py
test_set_config_value
TestJSONEditTool
66
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock, patch from trae_agent.utils.mcp_client import MCPClient, MCPServerConfig, MCPServerStatus class TestMCPClient(unittest.IsolatedAsyncioTestCase): def setUp(self): self.client = MCPClient() async def test_call_tool(self): mock_sess...
{"result": "ok"})
self.assertEqual
collection
tests/utils/test_mcp_client.py
test_call_tool
TestMCPClient
76
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock, patch from trae_agent.utils.mcp_client import MCPClient, MCPServerConfig, MCPServerStatus class TestMCPClient(unittest.IsolatedAsyncioTestCase): def setUp(self): self.client = MCPClient() def test_update_and_get_server_status(self): ...
MCPServerStatus.CONNECTED)
self.assertEqual
complex_expr
tests/utils/test_mcp_client.py
test_update_and_get_server_status
TestMCPClient
18
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.ollama_client import OllamaClient TEST_MODEL = "qwen3:4b" class TestOllamaClient(unittest.TestCase): def test_OllamaClient_init...
"ollama")
self.assertEqual
string_literal
tests/utils/test_ollama_client_utils.py
test_OllamaClient_init
TestOllamaClient
49
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
["git", "--no-pager", "diff"])
assert_*
collection
tests/agent/test_trae_agent.py
test_git_diff_generation
TestTraeAgentExtended
76
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
1)
self.assertEqual
numeric_literal
tests/tools/test_json_edit_tool.py
test_remove_user_by_index
TestJSONEditTool
146
null
bytedance/trae-agent
import unittest from unittest.mock import patch from trae_agent.utils.config import Config, ModelConfig, ModelProvider from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.anthropic_client import AnthropicClient from trae_agent.utils.llm_clients.openai_client import OpenAIClient c...
"echo")
self.assertEqual
string_literal
tests/utils/test_config.py
test_mcp_servers_config
TestLakeviewConfig
223
null
bytedance/trae-agent
import unittest from pathlib import Path from unittest.mock import AsyncMock, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.edit_tool import TextEditorTool class TestTextEditorTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = TextEditorTool() # ...
result.error)
self.assertIn
complex_expr
tests/tools/test_edit_tool.py
test_invalid_command
TestTextEditorTool
71
null
bytedance/trae-agent
import unittest from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.bash_tool import BashTool class TestBashTool(unittest.IsolatedAsyncioTestCase): def setUp(self): self.tool = BashTool() async def asyncTearDown(self): # Cleanup any active session if self.tool._s...
-1)
self.assertEqual
numeric_literal
tests/tools/test_bash_tool.py
test_missing_command_handling
TestBashTool
64
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
20)
self.assertEqual
numeric_literal
tests/utils/test_google_client.py
test_google_chat
TestGoogleClient
142
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
4)
self.assertEqual
numeric_literal
tests/agent/test_trae_agent.py
test_new_task_initialization
TestTraeAgentExtended
64
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
1)
self.assertEqual
numeric_literal
tests/utils/test_google_client.py
test_google_set_chat_history
TestGoogleClient
107
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
0)
self.assertEqual
numeric_literal
tests/tools/test_json_edit_tool.py
test_set_config_value
TestJSONEditTool
61
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"STOP")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_google_chat
TestGoogleClient
143
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from click.testing import CliRunner from trae_agent.cli import cli class TestCli(unittest.TestCase): def setUp(self): self.runner = CliRunner() @patch("trae_agent.cli.resolve_config_file", return_value="test_config.yaml") def test_run_wi...
result.output)
self.assertIn
complex_expr
tests/test_cli.py
test_run_with_nonexistent_file
TestCli
93
null
bytedance/trae-agent
import os import unittest from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.llm_basics import LLMMessage from trae_agent.utils.llm_clients.ollama_client import OllamaClient TEST_MODEL = "qwen3:4b" class TestOllamaClient(unittest.TestCase): def test_OllamaClient_init...
"http://localhost:11434/v1")
self.assertEqual
string_literal
tests/utils/test_ollama_client_utils.py
test_OllamaClient_init
TestOllamaClient
50
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
"TOOL_CALL")
self.assertEqual
string_literal
tests/utils/test_google_client.py
test_google_chat_with_tool_call
TestGoogleClient
194
null
bytedance/trae-agent
import unittest from unittest.mock import AsyncMock, MagicMock, patch from trae_agent.utils.mcp_client import MCPClient, MCPServerConfig, MCPServerStatus class TestMCPClient(unittest.IsolatedAsyncioTestCase): def setUp(self): self.client = MCPClient() @patch("trae_agent.utils.mcp_client.stdio_client"...
all(tool.__class__.__name__ == "MCPTool" for tool in all_tools))
self.assertTrue
func_call
tests/utils/test_mcp_client.py
test_connect_and_discover_stdio
TestMCPClient
59
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
self.test_project_path)
self.assertEqual
complex_expr
tests/agent/test_trae_agent.py
test_new_task_initialization
TestTraeAgentExtended
62
null
bytedance/trae-agent
import unittest from unittest.mock import MagicMock, patch from trae_agent.agent.agent_basics import AgentError from trae_agent.agent.trae_agent import TraeAgent from trae_agent.utils.config import Config from trae_agent.utils.legacy_config import LegacyConfig from trae_agent.utils.llm_clients.llm_basics import LLMRes...
self.agent.llm_client)
self.assertIsNotNone
complex_expr
tests/agent/test_trae_agent.py
test_public_property_access_allowed
TestTraeAgentExtended
139
null
bytedance/trae-agent
import os import unittest from unittest.mock import MagicMock, patch from trae_agent.tools.base import Tool, ToolCall, ToolResult from trae_agent.utils.config import ModelConfig, ModelProvider from trae_agent.utils.llm_clients.google_client import GoogleClient from trae_agent.utils.llm_clients.llm_basics import LLMMes...
10)
self.assertEqual
numeric_literal
tests/utils/test_google_client.py
test_google_chat
TestGoogleClient
141
null
bytedance/trae-agent
import json import unittest from unittest.mock import mock_open, patch from trae_agent.tools.base import ToolCallArguments from trae_agent.tools.json_edit_tool import JSONEditTool class TestJSONEditTool(unittest.IsolatedAsyncioTestCase): def setUp(self): """Set up the test environment.""" self.too...
"1.1.0")
self.assertEqual
string_literal
tests/tools/test_json_edit_tool.py
test_add_new_config_key
TestJSONEditTool
127
null
SAML-Toolkits/python3-saml
from urllib.error import URLError from copy import deepcopy import json from os.path import dirname, join, exists from lxml.etree import XMLSyntaxError import unittest from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser from onelogin.saml2.constants import OneLogin_Saml2_Constants class O...
settings)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/idp_metadata_parser_test.py
test_parse_testshib_required_binding_sso_post
OneLogin_Saml2_IdPMetadataParser_Test
202
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.logout_response import OneLogin_Saml2_Logout_Response from onelogin.saml2.settings import One...
parsed_response.get_xml())
self.assertIn
func_call
tests/src/OneLogin/saml2_tests/logout_response_test.py
testBuildWithStatus
OneLogin_Saml2_Logout_Response_Test
380
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
etree._Element)
self.assertIsInstance
complex_expr
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testToElement
TestOneLoginSaml2Xml
102
null
SAML-Toolkits/python3-saml
from base64 import b64decode, b64encode import json from os.path import dirname, join, exists import unittest from onelogin.saml2 import compat from onelogin.saml2.auth import OneLogin_Saml2_Auth from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2_Settings f...
None)
self.assertEqual
none_literal
tests/src/OneLogin/saml2_tests/auth_test.py
testProcessResponseInvalid
OneLogin_Saml2_Auth_Test
175
null
SAML-Toolkits/python3-saml
from base64 import b64decode from lxml import etree import json import sys from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.errors import OneLogin_Saml2_ValidationError from onelogin.saml2.response import OneLogin_S...
nameid_data)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/response_test.py
testGetNameIdData
OneLogin_Saml2_Response_Test
379
null
SAML-Toolkits/python3-saml
from base64 import b64decode import json from lxml import etree from os.path import dirname, join, exists import unittest import sys from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2...
860)
self.assertEqual
numeric_literal
tests/src/OneLogin/saml2_tests/utils_test.py
testFormatCert
OneLogin_Saml2_Utils_Test
54
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
id1)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetIDFromSAMLLogoutRequest
OneLogin_Saml2_Logout_Request_Test
149
null
SAML-Toolkits/python3-saml
from urllib.error import URLError from copy import deepcopy import json from os.path import dirname, join, exists from lxml.etree import XMLSyntaxError import unittest from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser from onelogin.saml2.constants import OneLogin_Saml2_Constants class O...
data_2)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/idp_metadata_parser_test.py
test_parse_multi_same_signing_and_encrypt_cert
OneLogin_Saml2_IdPMetadataParser_Test
455
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
cm)
self.assertIsNotNone
variable
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testLibxml2
TestOneLoginSaml2Xml
52
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists from time import strftime from datetime import datetime, timezone import unittest from onelogin.saml2 import compat from onelogin.saml2.metadata import OneLogin_Saml2_Metadata from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.constants...
metadata)
self.assertIsNotNone
variable
tests/src/OneLogin/saml2_tests/metadata_test.py
testBuilder
OneLogin_Saml2_Metadata_Test
47
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from onelogin.saml2 import compat from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.uti...
inflated_2)
self.assertNotIn
variable
tests/src/OneLogin/saml2_tests/authn_request_test.py
testCreateRequestForceAuthN
OneLogin_Saml2_Authn_Request_Test
195
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
signature.tag)
self.assertIn
complex_expr
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testQuery
TestOneLoginSaml2Xml
151
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists from time import strftime from datetime import datetime, timezone import unittest from onelogin.saml2 import compat from onelogin.saml2.metadata import OneLogin_Saml2_Metadata from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.constants...
signed_metadata)
self.assertIn
variable
tests/src/OneLogin/saml2_tests/metadata_test.py
testSignMetadata
OneLogin_Saml2_Metadata_Test
169
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists from time import strftime from datetime import datetime, timezone import unittest from onelogin.saml2 import compat from onelogin.saml2.metadata import OneLogin_Saml2_Metadata from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.constants...
str(exception))
self.assertIn
func_call
tests/src/OneLogin/saml2_tests/metadata_test.py
testSignMetadata
OneLogin_Saml2_Metadata_Test
191
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
issuer)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetIssuer
OneLogin_Saml2_Logout_Request_Test
252
null
SAML-Toolkits/python3-saml
from base64 import b64decode import json from lxml import etree from os.path import dirname, join, exists import unittest import sys from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2...
name_id)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/utils_test.py
testGenerateNameIdWithSPNameQualifier
OneLogin_Saml2_Utils_Test
509
null
SAML-Toolkits/python3-saml
from urllib.error import URLError from copy import deepcopy import json from os.path import dirname, join, exists from lxml.etree import XMLSyntaxError import unittest from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser from onelogin.saml2.constants import OneLogin_Saml2_Constants class O...
settings4)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/idp_metadata_parser_test.py
test_parse_required_binding_all
OneLogin_Saml2_IdPMetadataParser_Test
257
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
issuer_2)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetIssuer
OneLogin_Saml2_Logout_Request_Test
256
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
res)
self.assertIn
variable
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testValidateXML
TestOneLoginSaml2Xml
61
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
signature2)
self.assertNotEqual
variable
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testQuery
TestOneLoginSaml2Xml
156
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.logout_response import OneLogin_Saml2_Logout_Response from onelogin.saml2.settings import One...
response_2.is_valid(request_data))
self.assertFalse
func_call
tests/src/OneLogin/saml2_tests/logout_response_test.py
testIsInvalidXML
OneLogin_Saml2_Logout_Response_Test
147
null
SAML-Toolkits/python3-saml
from base64 import b64decode from lxml import etree import json import sys from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.errors import OneLogin_Saml2_ValidationError from onelogin.saml2.response import OneLogin_S...
nameid_data_2)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/response_test.py
testGetNameIdData
OneLogin_Saml2_Response_Test
389
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
"<saml:EncryptedID>")
self.assertRegex
string_literal
tests/src/OneLogin/saml2_tests/logout_request_test.py
testConstructorEncryptIdUsingX509certMulti
OneLogin_Saml2_Logout_Request_Test
141
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
0)
self.assertEqual
numeric_literal
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetSessionIndexes
OneLogin_Saml2_Logout_Request_Test
270
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
name_id_3)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetNameId
OneLogin_Saml2_Logout_Request_Test
243
null
SAML-Toolkits/python3-saml
Case Invalid Response, Invalid SubjectConfirmation """ settings = OneLogin_Saml2_Settings(self.loadSettingsJSON()) request_data = {"http_host": "example.com", "script_name": "index.html"} current_url = OneLogin_Saml2_Utils.get_self_url_no_query(request_data) xml = self.fi...
None)
self.assertNotEqual
none_literal
tests/src/OneLogin/saml2_tests/response_test.py
testGetAssertionNotOnOrAfter
OneLogin_Saml2_Response_Test
1,862
null
SAML-Toolkits/python3-saml
from urllib.error import URLError from copy import deepcopy import json from os.path import dirname, join, exists from lxml.etree import XMLSyntaxError import unittest from onelogin.saml2.idp_metadata_parser import OneLogin_Saml2_IdPMetadataParser from onelogin.saml2.constants import OneLogin_Saml2_Constants class O...
data)
self.assertIsNotNone
variable
tests/src/OneLogin/saml2_tests/idp_metadata_parser_test.py
testGetMetadataWithHeaders
OneLogin_Saml2_IdPMetadataParser_Test
58
null
SAML-Toolkits/python3-saml
from base64 import b64decode from lxml import etree import json import sys from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.errors import OneLogin_Saml2_ValidationError from onelogin.saml2.response import OneLogin_S...
nameid_data_3)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/response_test.py
testGetNameIdData
OneLogin_Saml2_Response_Test
399
null
SAML-Toolkits/python3-saml
from base64 import b64decode import json from lxml import etree from os.path import dirname, join, exists import unittest import sys from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2...
816)
self.assertEqual
numeric_literal
tests/src/OneLogin/saml2_tests/utils_test.py
testFormatPrivateKey
OneLogin_Saml2_Utils_Test
81
null
SAML-Toolkits/python3-saml
from base64 import b64decode import json from lxml import etree from os.path import dirname, join, exists import unittest import sys from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2...
916)
self.assertEqual
numeric_literal
tests/src/OneLogin/saml2_tests/utils_test.py
testFormatPrivateKey
OneLogin_Saml2_Utils_Test
87
null
SAML-Toolkits/python3-saml
from base64 import b64decode from lxml import etree import json import sys from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.errors import OneLogin_Saml2_ValidationError from onelogin.saml2.response import OneLogin_S...
nameid_data_5)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/response_test.py
testGetNameIdData
OneLogin_Saml2_Response_Test
414
null
SAML-Toolkits/python3-saml
from base64 import b64decode import json from lxml import etree from os.path import dirname, join, exists import unittest import sys from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2...
cert)
self.assertNotIn
variable
tests/src/OneLogin/saml2_tests/utils_test.py
testFormatCert
OneLogin_Saml2_Utils_Test
52
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
OneLogin_Saml2_XML.to_string(bxml))
self.assertIs
func_call
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testToString
TestOneLoginSaml2Xml
86
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
Exception)
self.assertRaises
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testIsValidRaisesExceptionWhenRaisesArgumentIsTrue
OneLogin_Saml2_Logout_Request_Test
491
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
str)
self.assertIsInstance
variable
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testValidateXML
TestOneLoginSaml2Xml
60
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from onelogin.saml2 import compat from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request from onelogin.saml2.constants import OneLogin_Saml2_Constants from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.uti...
inflated)
self.assertNotIn
variable
tests/src/OneLogin/saml2_tests/authn_request_test.py
testCreateRequest
OneLogin_Saml2_Authn_Request_Test
59
null
SAML-Toolkits/python3-saml
import json from os.path import dirname, join, exists import unittest from xml.dom.minidom import parseString from onelogin.saml2 import compat from onelogin.saml2.logout_request import OneLogin_Saml2_Logout_Request from onelogin.saml2.settings import OneLogin_Saml2_Settings from onelogin.saml2.utils import OneLogin_S...
id2)
self.assertEqual
variable
tests/src/OneLogin/saml2_tests/logout_request_test.py
testGetIDFromSAMLLogoutRequest
OneLogin_Saml2_Logout_Request_Test
153
null
SAML-Toolkits/python3-saml
import json import unittest import xmlsec from base64 import b64decode from lxml import etree from os.path import dirname, join, exists from onelogin.saml2.utils import OneLogin_Saml2_XML class TestOneLoginSaml2Xml(unittest.TestCase): data_path = join(dirname(__file__), "..", "..", "..", "data") def loadSett...
OneLogin_Saml2_XML._element_class)
self.assertIsInstance
complex_expr
tests/src/OneLogin/saml2_tests/xml_utils_test.py
testValidateXML
TestOneLoginSaml2Xml
71
null