Validator classes are hashable.
()
| 863 | |
| 864 | |
| 865 | def 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 | |
| 878 | class TestLtLeGeGt: |