コード例 #1
0
ファイル: test_helplen.py プロジェクト: pogross/bitesofpy
def test_pow():
    assert get_len_help_text(pow) == 278
コード例 #2
0
ファイル: test_helplen.py プロジェクト: pogross/bitesofpy
def test_another_bad_input():
    with pytest.raises(ValueError):
        get_len_help_text("string")
コード例 #3
0
ファイル: test_helplen.py プロジェクト: pogross/bitesofpy
def test_max():
    assert get_len_help_text(max) == 402
コード例 #4
0
ファイル: test_helplen.py プロジェクト: pogross/bitesofpy
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)