Esempio n. 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)
Esempio n. 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
Esempio n. 3
0
def test_pa_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '159999990'
    assert pa.start(invalid_number) == False
Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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