Beispiel #1
0
def test_pa_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '159999995'
    assert pa.start(valid_number)
Beispiel #2
0
def test_pa_validation_start_different_15():
    """Test if an invalid number start is different 15"""

    invalid_number = '172030964'
    assert pa.start(invalid_number) == False
Beispiel #3
0
def test_pa_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '159999990'
    assert pa.start(invalid_number) == False
Beispiel #4
0
def test_pa_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1520309645'
    assert pa.start(invalid_number) == False
Beispiel #5
0
def test_pa_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '1572030'
    assert pa.start(invalid_number) == False
Beispiel #6
0
def test_pa_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '159999995'
    assert pa.start(valid_number)
Beispiel #7
0
def test_pa_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '159999990'
    assert pa.start(invalid_number) is False
Beispiel #8
0
def test_pa_validation_start_different_15():
    """Test if an invalid number start is different 15"""

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

    invalid_number = '1572030'
    assert pa.start(invalid_number) is False
Beispiel #10
0
def test_pa_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1520309645'
    assert pa.start(invalid_number) is False