MCPcopy
hub / github.com/pydantic/pydantic / test_frozenset_any

Function test_frozenset_any

pydantic-core/tests/validators/test_frozenset.py:28–32  ·  view source on GitHub ↗
(input_value, expected)

Source from the content-addressed store, hash-verified

26 [([], frozenset()), ([1, '2', b'3'], {1, '2', b'3'}), (frozenset([1, '2', b'3']), {1, '2', b'3'})],
27)
28def test_frozenset_any(input_value, expected):
29 v = SchemaValidator(cs.frozenset_schema())
30 output = v.validate_python(input_value)
31 assert output == expected
32 assert isinstance(output, frozenset)
33
34
35def test_no_copy():

Callers

nothing calls this directly

Calls 2

frozenset_schemaMethod · 0.80
validate_pythonMethod · 0.45

Tested by

no test coverage detected