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

    valid_number = '240061536'
    assert rr.start(valid_number)
示例#2
0
def test_rr_validation_start_different_24():
    """Test if an invalid number start is different 24"""

    invalid_number = '172030964'
    assert rr.start(invalid_number) == False
示例#3
0
def test_rr_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

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

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

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

    valid_number = '240061536'
    assert rr.start(valid_number)
示例#7
0
def test_rr_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '240013406'
    assert rr.start(invalid_number) is False
示例#8
0
def test_rr_validation_start_different_24():
    """Test if an invalid number start is different 24"""

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

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

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