Пример #1
0
def test_smallest_divisible_1_20():
    assert smallest_divisible(1, 20) == 232792560
Пример #2
0
def test_smallest_divisible_1_10():
    assert smallest_divisible(1, 10) == 2520
Пример #3
0
def test_smallest_divisible_zero_or_less_args(arg1, arg2):
    with pytest.raises(ValueError):
        smallest_divisible(arg1, arg2)
Пример #4
0
def test_smallest_divisible_range_low_larger_than_range_high():
    with pytest.raises(ValueError):
        smallest_divisible(2, 1)
Пример #5
0
def test_smallest_divisible_non_int_args(arg1, arg2):
    with pytest.raises(TypeError):
        smallest_divisible(arg1, arg2)