Пример #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