예제 #1
0
def test_ma_validation_valid_digit_verification():
    """Test if a valid number is really valid"""

    valid_number = '120000385'
    assert ma.start(valid_number)
예제 #2
0
def test_ma_validation_start_different_12():
    """Test if an invalid number start is different 12"""

    invalid_number = '172030964'
    assert ma.start(invalid_number) == False
예제 #3
0
def test_ma_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '120000387'
    assert ma.start(invalid_number) == False
예제 #4
0
def test_ma_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1220309645'
    assert ma.start(invalid_number) == False
예제 #5
0
def test_ma_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '1272030'
    assert ma.start(invalid_number) == False
예제 #6
0
def test_ma_validation_valid_digit_verification():
    """Test if a valid number is really valid"""

    valid_number = '120000385'
    assert ma.start(valid_number)
예제 #7
0
def test_ma_validation_invalid_digit_verification():
    """Test if digit verification is invalid"""

    invalid_number = '120000387'
    assert ma.start(invalid_number) is False
예제 #8
0
def test_ma_validation_start_different_12():
    """Test if an invalid number start is different 12"""

    invalid_number = '172030964'
    assert ma.start(invalid_number) is False
예제 #9
0
def test_ma_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '1272030'
    assert ma.start(invalid_number) is False
예제 #10
0
def test_ma_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '1220309645'
    assert ma.start(invalid_number) is False