Example #1
0
 class Tester:
     value = attr.ib(validator=min_len(self.MIN_LENGTH))
Example #2
0
 def test_repr(self):
     """
     __repr__ is meaningful.
     """
     assert repr(min_len(23)) == "<min_len validator for 23>"