Пример #1
0
def test_pow():
    assert get_len_help_text(pow) == 278
Пример #2
0
def test_another_bad_input():
    with pytest.raises(ValueError):
        get_len_help_text("string")
Пример #3
0
def test_max():
    assert get_len_help_text(max) == 402
Пример #4
0
def test_bad_input():
    max1 = object()
    with pytest.raises(ValueError):
        get_len_help_text(max1)
Пример #5
0
def test_pow():
    # py 3.7 / 3.8 difference
    assert get_len_help_text(pow) in (278, 284)