Exemple #1
0
def test_ba_validation_big_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0030964575'
    assert ba.start(invalid_number) == False
Exemple #2
0
def test_ba_validation_right_size_valid_number_9_digits_and_second_digit_equal_6_7_9():
    """Test if a valid number is really valid with 9 digits"""

    valid_number = '162345651'
    assert ba.start(valid_number) == True
Exemple #3
0
def test_ba_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0172030'
    assert ba.start(invalid_number) == False
Exemple #4
0
def test_ba_validation_right_size_valid_number_8_digits_and_second_digit_different_6_7_9():
    """Test if a valid number is really valid with 8 digits"""

    valid_number = '74694200'
    assert ba.start(valid_number) == True
Exemple #5
0
def test_ba_validation_right_size_invalid_number_9_digits_and_second_digit_equal_6_7_9():
    """Test if an invalid number is really invalid with 9 digits"""

    invalid_number = '162345652'
    assert ba.start(invalid_number) == False
Exemple #6
0
def test_ba_validation_big_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0030964575'
    assert ba.start(invalid_number) is False
Exemple #7
0
def test_ba_validation_right_size_invalid_number_8_digits_and_second_digit_different_6_7_9():
    """Test if an invalid number is really invalid with 8 digits"""

    invalid_number = '12345665'
    assert ba.start(invalid_number) == False
Exemple #8
0
def test_ba_validation_small_size_number():
    """Test if an invalid number, with wrong size, is really invalid"""

    invalid_number = '0172030'
    assert ba.start(invalid_number) is False
Exemple #9
0
def test_ba_validation_right_size_valid_number_9_digits_and_second_digit_equal_6_7_9():
    """Test if a valid number is really valid with 9 digits"""

    valid_number = '162345651'
    assert ba.start(valid_number) is True
Exemple #10
0
def test_ba_validation_right_size_invalid_number_9_digits_and_second_digit_equal_6_7_9():
    """Test if an invalid number is really invalid with 9 digits"""

    invalid_number = '162345652'
    assert ba.start(invalid_number) is False
Exemple #11
0
def test_ba_validation_right_size_valid_number_8_digits_and_second_digit_different_6_7_9():
    """Test if a valid number is really valid with 8 digits"""

    valid_number = '74694200'
    assert ba.start(valid_number) is True
Exemple #12
0
def test_ba_validation_right_size_invalid_number_8_digits_and_second_digit_different_6_7_9():
    """Test if an invalid number is really invalid with 8 digits"""

    invalid_number = '12345665'
    assert ba.start(invalid_number) is False