aboutsummaryrefslogtreecommitdiff
path: root/tests/ssn_test.py
blob: ce2a57bcf621870e2c20e3bcdbdb35ecfe47fc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from edify.library import ssn


def test_ssn():
    ssns = {
        "000-22-3333": False,
        "100-22-3333": True,
        "": False,
        123: False,
    }
    for s_s_n, expected in ssns.items():
        assert ssn(s_s_n) == expected