MCPcopy
hub / github.com/python-attrs/attrs / test_hashability

Function test_hashability

tests/test_validators.py:865–875  ·  tests/test_validators.py::test_hashability

Validator classes are hashable.

()

Source from the content-addressed store, hash-verified

863
864
865def test_hashability():
866 class="st">"""
867 Validator classes are hashable.
868 class="st">"""
869 for obj_name in dir(validator_module):
870 obj = getattr(validator_module, obj_name)
871 if not has(obj):
872 continue
873 hash_func = getattr(obj, class="st">"__hash__", None)
874 assert hash_func is not None
875 assert hash_func is not object.__hash__
876
877
878class TestLtLeGeGt:

Callers

nothing calls this directly

Calls 1

hasFunction · 0.90

Tested by

no test coverage detected