Exemplo n.º 1
0
def test_ms_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '280000006'
    assert ms.start(valid_number) == True
Exemplo n.º 2
0
def test_ms_validation_start_different_28():
    """Test if an invalid number start is different 28"""

    invalid_number = '172030964'
    assert ms.start(invalid_number) == False
Exemplo n.º 3
0
def test_ms_validation_invalid_digit_verification():
    """Test if invalid digit verification is really invalid"""

    invalid_number = '280000008'
    assert ms.start(invalid_number) == False
Exemplo n.º 4
0
def test_ms_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '2820309645'
    assert ms.start(invalid_number) == False
Exemplo n.º 5
0
def test_ms_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '2872030'
    assert ms.start(invalid_number) == False
Exemplo n.º 6
0
def test_ms_validation_valid_number_is_really_valid():
    """Test if a valid number is really valid"""

    valid_number = '280000006'
    assert ms.start(valid_number) is True
Exemplo n.º 7
0
def test_ms_validation_invalid_digit_verification():
    """Test if invalid digit verification is really invalid"""

    invalid_number = '280000008'
    assert ms.start(invalid_number) is False
Exemplo n.º 8
0
def test_ms_validation_start_different_28():
    """Test if an invalid number start is different 28"""

    invalid_number = '172030964'
    assert ms.start(invalid_number) is False
Exemplo n.º 9
0
def test_ms_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '2872030'
    assert ms.start(invalid_number) is False
Exemplo n.º 10
0
def test_ms_validation_right_size_invalid_number():
    """Test if an invalid number is really invalid"""

    invalid_number = '2820309645'
    assert ms.start(invalid_number) is False