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