예제 #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
    )