Socialify

Folder ..

Viewing ssn_test.py
12 lines (10 loc) • 244.0 B

 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