Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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
Example #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