Example #1
0
def test_ap_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '030123459'
    assert ap.start(valid_number)
Example #2
0
def test_ap_validation_start_different_03():
    """Test if an invalid number start is different 03"""

    invalid_number = '172030964'
    assert ap.start(invalid_number) == False
Example #3
0
def test_ap_validation_check_digit():
    """Test if invalid the check digit calculation"""

    invalid_number = '030123456'
    assert ap.start(invalid_number) == False
Example #4
0
def test_ap_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1720309645'
    assert ap.start(invalid_number) == False
Example #5
0
def test_ap_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0172030'
    assert ap.start(invalid_number) == False
Example #6
0
def test_ap_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '030123459'
    assert ap.start(valid_number)
Example #7
0
def test_ap_validation_check_digit():
    """Test if invalid the check digit calculation"""

    invalid_number = '030123456'
    assert ap.start(invalid_number) is False
Example #8
0
def test_ap_validation_start_different_03():
    """Test if an invalid number start is different 03"""

    invalid_number = '172030964'
    assert ap.start(invalid_number) is False
Example #9
0
def test_ap_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0172030'
    assert ap.start(invalid_number) is False
Example #10
0
def test_ap_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1720309645'
    assert ap.start(invalid_number) is False