예제 #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)