Esempio n. 1
0
def test_pid():
    assert validate_field('pid:000000001')
    assert not validate_field('pid:0123456789')
Esempio n. 2
0
def test_ecl():
    assert validate_field('ecl:brn')
    assert not validate_field('ecl:wat')
Esempio n. 3
0
def test_hcl():
    assert validate_field('hcl:#123abc')
    assert not validate_field('hcl:#123abz')
    assert not validate_field('hcl:123abc')
Esempio n. 4
0
def test_hgt():
    assert validate_field('hgt:60in')
    assert validate_field('hgt:190cm')
    assert not validate_field('hgt:190in')
    assert not validate_field('hgt:190')
Esempio n. 5
0
def test_byr():
    assert validate_field('byr:2002')
    assert not validate_field('byr:2003')