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