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