示例#1
0
def test_returns_failed_validation_on_invalid_ssn(value):
    assert isinstance(fi_ssn(value), ValidationFailure)
示例#2
0
def test_returns_true_on_valid_ssn(value):
    assert fi_ssn(value)
示例#3
0
def test_returns_true_on_valid_ssn(value):
    assert fi_ssn(value)
示例#4
0
def test_returns_failed_validation_on_invalid_ssn(value):
    assert isinstance(fi_ssn(value), ValidationFailure)
示例#5
0
def test_returns_failed_validation_on_temporal_ssn_when_not_allowed():
    assert isinstance(
        fi_ssn('010190-900P', allow_temporal_ssn=False),
        ValidationFailure
    )