Beispiel #1
0
def test_validator_8():
    assert uk_postal_code_validator('') == "N"
Beispiel #2
0
def test_validator_9():  # spaces
    assert uk_postal_code_validator(' ') == "N"
Beispiel #3
0
def test_validator_6():
    assert uk_postal_code_validator('ABC DEF') == "N"
Beispiel #4
0
def test_validator_7():
    assert uk_postal_code_validator('GU16 7HF') == "Y"
Beispiel #5
0
def test_validator_5():
    assert uk_postal_code_validator('L1 8JQ') == "Y"
Beispiel #6
0
def test_validator_4():
    assert uk_postal_code_validator('ASCN 1ZZ') == "Y"
Beispiel #7
0
def test_validator_3():
    assert uk_postal_code_validator('sw1w 0ny') == "N"
Beispiel #8
0
def test_validator_2():
    assert uk_postal_code_validator('SW1W 0NY') == "Y"
Beispiel #9
0
def test_validator_1():
    assert uk_postal_code_validator('DUMMY') == "N"