コード例 #1
0
ファイル: test_main.py プロジェクト: bmess/nagios_graphite
def test_remove_null_with_null():
    xs = [1, None, 2, None]
    assert main.remove_null(sum)(xs) == 3
コード例 #2
0
ファイル: test_main.py プロジェクト: neha-ot/nagios_graphite
def test_remove_null_with_null():
    xs = [1, None, 2, None]
    assert main.remove_null(sum)(xs) == 3
コード例 #3
0
ファイル: test_main.py プロジェクト: bmess/nagios_graphite
def test_remove_null_without_null():
    xs = [1, 2, 3, 4]
    assert main.remove_null(sum)(xs) == 10
コード例 #4
0
ファイル: test_main.py プロジェクト: neha-ot/nagios_graphite
def test_remove_null_without_null():
    xs = [1, 2, 3, 4]
    assert main.remove_null(sum)(xs) == 10