Silent if len(value) => min_len. Values can be strings and other iterables.
(self, value)
| 1058 | ], |
| 1059 | ) |
| 1060 | def test_check_valid(self, value): |
| 1061 | """ |
| 1062 | Silent if len(value) => min_len. |
| 1063 | Values can be strings and other iterables. |
| 1064 | """ |
| 1065 | |
| 1066 | @attr.s |
| 1067 | class Tester: |
| 1068 | value = attr.ib(validator=min_len(self.MIN_LENGTH)) |
| 1069 | |
| 1070 | Tester(value) # shouldn't raise exceptions |
| 1071 | |
| 1072 | @pytest.mark.parametrize( |
| 1073 | "value", |