示例#1
0
def test_max_path_length_no():
    current_max_path_length = 2
    max_assigned = True
    constraints = Constraints()
    current_max_path_length = calculate_path_length(constraints,
                                                    current_max_path_length,
                                                    max_assigned)
    assert current_max_path_length == 1
示例#2
0
def test_max_path_length_start():
    current_max_path_length = 0
    max_assigned = False
    constraints = Constraints(max_path_length=1)
    current_max_path_length = calculate_path_length(constraints,
                                                    current_max_path_length,
                                                    max_assigned)
    assert current_max_path_length == 1