new test to check all combination of service specifications

add combination of [mode, pow, nb channel] filled or empty
leading to feasible path or not, and check the propagate and propagate_and_optimize_mode
functions work as expected on a reference toy example

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
EstherLerouzic
2018-12-19 18:13:05 +00:00
parent 9cfb57dc4b
commit cb45c7ef16
4 changed files with 429 additions and 13 deletions

View File

@@ -410,7 +410,7 @@ def propagate_and_optimize_mode(path, req, equipment, show=False):
if m['baud_rate'] == b]
modes_to_explore = sorted(modes_to_explore,
key = lambda x: x['bit_rate'], reverse=True)
print(modes_to_explore)
# print(modes_to_explore)
# step2 : computes propagation for each baudrate: stop and select the first that passes
found_a_feasible_mode = False
# TODO : the case of roll of is not included: for now use SI one