示例#1
0
def test_to_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '29010227836'
    assert to.start(valid_number)
示例#2
0
def test_to_validation_invalid_number_with_third_and_fourth_digit_different_01_02_03_99():
    """Test if invalid number with third and fourth digit different of 01, 02, 03 e 99"""

    invalid_number = '06087879999'
    assert to.start(invalid_number) == False
示例#3
0
def test_to_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '29010227833'
    assert to.start(invalid_number) == False
示例#4
0
def test_to_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '24172030964577'
    assert to.start(invalid_number) == False
示例#5
0
def test_to_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '247030'
    assert to.start(invalid_number) == False
示例#6
0
def test_to_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '29010227836'
    assert to.start(valid_number)
示例#7
0
def test_to_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '29010227833'
    assert to.start(invalid_number) is False
示例#8
0
def test_to_validation_invalid_number_with_third_and_fourth_digit_different_01_02_03_99():
    """Test if invalid number with third and fourth digit different of 01, 02, 03 e 99"""

    invalid_number = '06087879999'
    assert to.start(invalid_number) is False
示例#9
0
def test_to_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '247030'
    assert to.start(invalid_number) is False
示例#10
0
def test_to_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '24172030964577'
    assert to.start(invalid_number) is False