示例#1
0
def test_validate_lt_secpk1n2(value, is_valid):
    if is_valid:
        validate_lt_secpk1n2(value)
    else:
        with pytest.raises(ValidationError):
            validate_lt_secpk1n2(value)
示例#2
0
 def validate(self):
     super().validate()
     validate_lt_secpk1n2(self.s, title="Transaction.s")