def test_returns_failed_validation_on_invalid_ssn(value): assert isinstance(fi_ssn(value), ValidationFailure)
def test_returns_true_on_valid_ssn(value): assert fi_ssn(value)
def test_returns_failed_validation_on_temporal_ssn_when_not_allowed(): assert isinstance( fi_ssn('010190-900P', allow_temporal_ssn=False), ValidationFailure )