Exemple #1
0
def test_get_averaged_score_data():
    node = Node('a', score=10)

    assert len(node.variations) == 0
    assert node.get_averaged_score() == 10.0
Exemple #2
0
def test_get_averaged_scorevariations():
    node = Node('a', score=10)
    node.variations = ['v1', 'v2']

    assert node.get_averaged_score() == 5.0