Esempio n. 1
0
def test_smallest_divisible_1_20():
    assert smallest_divisible(1, 20) == 232792560
Esempio n. 2
0
def test_smallest_divisible_1_10():
    assert smallest_divisible(1, 10) == 2520
Esempio n. 3
0
def test_smallest_divisible_zero_or_less_args(arg1, arg2):
    with pytest.raises(ValueError):
        smallest_divisible(arg1, arg2)
Esempio n. 4
0
def test_smallest_divisible_range_low_larger_than_range_high():
    with pytest.raises(ValueError):
        smallest_divisible(2, 1)
Esempio n. 5
0
def test_smallest_divisible_non_int_args(arg1, arg2):
    with pytest.raises(TypeError):
        smallest_divisible(arg1, arg2)