1
|
|
|
"""Module to test the KytosGraph in graph.py. Auxiliary Second""" |
2
|
|
|
|
3
|
|
|
# module under test |
4
|
|
|
from tests.integration.edges_settings import EdgesSettings |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
class TestResultsEdgesAux2(EdgesSettings): |
8
|
|
|
"""Tests for the graph class. |
9
|
|
|
|
10
|
|
|
Tests to see if reflexive searches and impossible searches |
11
|
|
|
show correct results. |
12
|
|
|
""" |
13
|
|
|
|
14
|
|
|
def test_path7_1(self): |
15
|
|
|
"""Tests paths between all users using constrained path algorithm, |
16
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
17
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
18
|
|
|
constraint set to 'B' |
19
|
|
|
""" |
20
|
|
|
# delay = 50 |
21
|
|
|
self.assertTrue(self.paths_between_all_users("S1:1", {'delay': 50, |
22
|
|
|
'bandwidth': 100, |
23
|
|
|
'ownership': "B"})) |
24
|
|
|
|
25
|
|
|
def test_path7_2(self): |
26
|
|
|
"""Tests paths between all users using constrained path algorithm, |
27
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
28
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
29
|
|
|
constraint set to 'B' |
30
|
|
|
""" |
31
|
|
|
# delay = 50 |
32
|
|
|
self.assertTrue(self.paths_between_all_users("S2:1", {'delay': 50, |
33
|
|
|
'bandwidth': 100, |
34
|
|
|
'ownership': "B"})) |
35
|
|
|
|
36
|
|
|
def test_path7_3(self): |
37
|
|
|
"""Tests paths between all users using constrained path algorithm, |
38
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
39
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
40
|
|
|
constraint set to 'B' |
41
|
|
|
""" |
42
|
|
|
# delay = 50 |
43
|
|
|
self.assertTrue(self.paths_between_all_users("S3:1", {'delay': 50, |
44
|
|
|
'bandwidth': 100, |
45
|
|
|
'ownership': "B"})) |
46
|
|
|
|
47
|
|
|
def test_path7_4(self): |
48
|
|
|
"""Tests paths between all users using constrained path algorithm, |
49
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
50
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
51
|
|
|
constraint set to 'B' |
52
|
|
|
""" |
53
|
|
|
# delay = 50 |
54
|
|
|
self.assertTrue(self.paths_between_all_users("S5:1", {'delay': 50, |
55
|
|
|
'bandwidth': 100, |
56
|
|
|
'ownership': "B"})) |
57
|
|
|
|
58
|
|
|
def test_path7_5(self): |
59
|
|
|
"""Tests paths between all users using constrained path algorithm, |
60
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
61
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
62
|
|
|
constraint set to 'B' |
63
|
|
|
""" |
64
|
|
|
# delay = 50 |
65
|
|
|
self.assertTrue(self.paths_between_all_users("S4:2", {'delay': 50, |
66
|
|
|
'bandwidth': 100, |
67
|
|
|
'ownership': "B"})) |
68
|
|
|
|
69
|
|
|
def test_path7_6(self): |
70
|
|
|
"""Tests paths between all users using constrained path algorithm, |
71
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
72
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
73
|
|
|
constraint set to 'B' |
74
|
|
|
""" |
75
|
|
|
# delay = 50 |
76
|
|
|
self.assertTrue(self.paths_between_all_users("User1:2", {'delay': 50, |
77
|
|
|
'bandwidth': 100, |
78
|
|
|
'ownership': "B"})) |
79
|
|
|
|
80
|
|
|
def test_path7_7(self): |
81
|
|
|
"""Tests paths between all users using constrained path algorithm, |
82
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
83
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
84
|
|
|
constraint set to 'B' |
85
|
|
|
""" |
86
|
|
|
# delay = 50 |
87
|
|
|
self.assertTrue(self.paths_between_all_users("S5:5", {'delay': 50, |
88
|
|
|
'bandwidth': 100, |
89
|
|
|
'ownership': "B"})) |
90
|
|
|
|
91
|
|
|
def test_path7_8(self): |
92
|
|
|
"""Tests paths between all users using constrained path algorithm, |
93
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
94
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
95
|
|
|
constraint set to 'B' |
96
|
|
|
""" |
97
|
|
|
# delay = 50 |
98
|
|
|
self.assertTrue(self.paths_between_all_users("S8:2", {'delay': 50, |
99
|
|
|
'bandwidth': 100, |
100
|
|
|
'ownership': "B"})) |
101
|
|
|
|
102
|
|
|
def test_path7_9(self): |
103
|
|
|
"""Tests paths between all users using constrained path algorithm, |
104
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
105
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
106
|
|
|
constraint set to 'B' |
107
|
|
|
""" |
108
|
|
|
# delay = 50 |
109
|
|
|
self.assertTrue(self.paths_between_all_users("S5:6", {'delay': 50, |
110
|
|
|
'bandwidth': 100, |
111
|
|
|
'ownership': "B"})) |
112
|
|
|
|
113
|
|
|
def test_path7_1_0(self): |
114
|
|
|
"""Tests paths between all users using constrained path algorithm, |
115
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
116
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
117
|
|
|
constraint set to 'B' |
118
|
|
|
""" |
119
|
|
|
# delay = 50 |
120
|
|
|
self.assertTrue(self.paths_between_all_users("User1:3", {'delay': 50, |
121
|
|
|
'bandwidth': 100, |
122
|
|
|
'ownership': "B"})) |
123
|
|
|
|
124
|
|
|
def test_path7_1_1(self): |
125
|
|
|
"""Tests paths between all users using constrained path algorithm, |
126
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
127
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
128
|
|
|
constraint set to 'B' |
129
|
|
|
""" |
130
|
|
|
# delay = 50 |
131
|
|
|
self.assertTrue(self.paths_between_all_users("S6:3", {'delay': 50, |
132
|
|
|
'bandwidth': 100, |
133
|
|
|
'ownership': "B"})) |
134
|
|
|
|
135
|
|
|
def test_path7_1_2(self): |
136
|
|
|
"""Tests paths between all users using constrained path algorithm, |
137
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
138
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
139
|
|
|
constraint set to 'B' |
140
|
|
|
""" |
141
|
|
|
# delay = 50 |
142
|
|
|
self.assertTrue(self.paths_between_all_users("S9:1", {'delay': 50, |
143
|
|
|
'bandwidth': 100, |
144
|
|
|
'ownership': "B"})) |
145
|
|
|
|
146
|
|
|
def test_path7_1_3(self): |
147
|
|
|
"""Tests paths between all users using constrained path algorithm, |
148
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
149
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
150
|
|
|
constraint set to 'B' |
151
|
|
|
""" |
152
|
|
|
# delay = 50 |
153
|
|
|
self.assertTrue(self.paths_between_all_users("S6:4", {'delay': 50, |
154
|
|
|
'bandwidth': 100, |
155
|
|
|
'ownership': "B"})) |
156
|
|
|
|
157
|
|
|
def test_path7_1_4(self): |
158
|
|
|
"""Tests paths between all users using constrained path algorithm, |
159
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
160
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
161
|
|
|
constraint set to 'B' |
162
|
|
|
""" |
163
|
|
|
# delay = 50 |
164
|
|
|
self.assertTrue(self.paths_between_all_users("S9:2", {'delay': 50, |
165
|
|
|
'bandwidth': 100, |
166
|
|
|
'ownership': "B"})) |
167
|
|
|
|
168
|
|
|
def test_path7_1_5(self): |
169
|
|
|
"""Tests paths between all users using constrained path algorithm, |
170
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
171
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
172
|
|
|
constraint set to 'B' |
173
|
|
|
""" |
174
|
|
|
# delay = 50 |
175
|
|
|
self.assertTrue(self.paths_between_all_users("S6:5", {'delay': 50, |
176
|
|
|
'bandwidth': 100, |
177
|
|
|
'ownership': "B"})) |
178
|
|
|
|
179
|
|
|
def test_path7_1_6(self): |
180
|
|
|
"""Tests paths between all users using constrained path algorithm, |
181
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
182
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
183
|
|
|
constraint set to 'B' |
184
|
|
|
""" |
185
|
|
|
# delay = 50 |
186
|
|
|
self.assertTrue(self.paths_between_all_users("S10:1", {'delay': 50, |
187
|
|
|
'bandwidth': 100, |
188
|
|
|
'ownership': "B"})) |
189
|
|
|
|
190
|
|
|
def test_path7_1_7(self): |
191
|
|
|
"""Tests paths between all users using constrained path algorithm, |
192
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
193
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
194
|
|
|
constraint set to 'B' |
195
|
|
|
""" |
196
|
|
|
# delay = 50 |
197
|
|
|
self.assertTrue(self.paths_between_all_users("S8:5", {'delay': 50, |
198
|
|
|
'bandwidth': 100, |
199
|
|
|
'ownership': "B"})) |
200
|
|
|
|
201
|
|
|
def test_path7_1_8(self): |
202
|
|
|
"""Tests paths between all users using constrained path algorithm, |
203
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
204
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
205
|
|
|
constraint set to 'B' |
206
|
|
|
""" |
207
|
|
|
# delay = 50 |
208
|
|
|
self.assertTrue(self.paths_between_all_users("S9:4", {'delay': 50, |
209
|
|
|
'bandwidth': 100, |
210
|
|
|
'ownership': "B"})) |
211
|
|
|
|
212
|
|
|
def test_path7_1_9(self): |
213
|
|
|
"""Tests paths between all users using constrained path algorithm, |
214
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
215
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
216
|
|
|
constraint set to 'B' |
217
|
|
|
""" |
218
|
|
|
# delay = 50 |
219
|
|
|
self.assertTrue(self.paths_between_all_users("User1:4", {'delay': 50, |
220
|
|
|
'bandwidth': 100, |
221
|
|
|
'ownership': "B"})) |
222
|
|
|
|
223
|
|
|
def test_path7_2_0(self): |
224
|
|
|
"""Tests paths between all users using constrained path algorithm, |
225
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
226
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
227
|
|
|
constraint set to 'B' |
228
|
|
|
""" |
229
|
|
|
# delay = 50 |
230
|
|
|
self.assertTrue(self.paths_between_all_users("User4:3", {'delay': 50, |
231
|
|
|
'bandwidth': 100, |
232
|
|
|
'ownership': "B"})) |
233
|
|
|
|
234
|
|
|
def test_path7_2_1(self): |
235
|
|
|
"""Tests paths between all users using constrained path algorithm, |
236
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
237
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
238
|
|
|
constraint set to 'B' |
239
|
|
|
""" |
240
|
|
|
# bandwidth = 100 |
241
|
|
|
self.assertTrue(self.paths_between_all_users("S3:1", {'delay': 50, |
242
|
|
|
'bandwidth': 100, |
243
|
|
|
'ownership': "B"})) |
244
|
|
|
|
245
|
|
|
def test_path7_2_2(self): |
246
|
|
|
"""Tests paths between all users using constrained path algorithm, |
247
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
248
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
249
|
|
|
constraint set to 'B' |
250
|
|
|
""" |
251
|
|
|
# bandwidth = 100 |
252
|
|
|
self.assertTrue(self.paths_between_all_users("S5:1", {'delay': 50, |
253
|
|
|
'bandwidth': 100, |
254
|
|
|
'ownership': "B"})) |
255
|
|
|
|
256
|
|
|
def test_path7_2_3(self): |
257
|
|
|
"""Tests paths between all users using constrained path algorithm, |
258
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
259
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
260
|
|
|
constraint set to 'B' |
261
|
|
|
""" |
262
|
|
|
# bandwidth = 100 |
263
|
|
|
self.assertTrue(self.paths_between_all_users("User1:4", {'delay': 50, |
264
|
|
|
'bandwidth': 100, |
265
|
|
|
'ownership': "B"})) |
266
|
|
|
|
267
|
|
|
def test_path7_2_4(self): |
268
|
|
|
"""Tests paths between all users using constrained path algorithm, |
269
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
270
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
271
|
|
|
constraint set to 'B' |
272
|
|
|
""" |
273
|
|
|
# bandwidth = 100 |
274
|
|
|
self.assertTrue(self.paths_between_all_users("User4:3", {'delay': 50, |
275
|
|
|
'bandwidth': 100, |
276
|
|
|
'ownership': "B"})) |
277
|
|
|
|
278
|
|
|
def test_path7_2_5(self): |
279
|
|
|
"""Tests paths between all users using constrained path algorithm, |
280
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
281
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
282
|
|
|
constraint set to 'B' |
283
|
|
|
""" |
284
|
|
|
# reliability = 3 |
285
|
|
|
self.assertTrue(self.paths_between_all_users("S4:1", {'delay': 50, |
286
|
|
|
'bandwidth': 100, |
287
|
|
|
'ownership': "B"})) |
288
|
|
|
|
289
|
|
|
def test_path7_2_6(self): |
290
|
|
|
"""Tests paths between all users using constrained path algorithm, |
291
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
292
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
293
|
|
|
constraint set to 'B' |
294
|
|
|
""" |
295
|
|
|
# reliability = 3 |
296
|
|
|
self.assertTrue(self.paths_between_all_users("S5:2", {'delay': 50, |
297
|
|
|
'bandwidth': 100, |
298
|
|
|
'ownership': "B"})) |
299
|
|
|
|
300
|
|
|
def test_path7_2_7(self): |
301
|
|
|
"""Tests paths between all users using constrained path algorithm, |
302
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
303
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
304
|
|
|
constraint set to 'B' |
305
|
|
|
""" |
306
|
|
|
# reliability = 3 |
307
|
|
|
self.assertTrue(self.paths_between_all_users("S5:3", {'delay': 50, |
308
|
|
|
'bandwidth': 100, |
309
|
|
|
'ownership': "B"})) |
310
|
|
|
|
311
|
|
|
def test_path7_2_8(self): |
312
|
|
|
"""Tests paths between all users using constrained path algorithm, |
313
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
314
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
315
|
|
|
constraint set to 'B' |
316
|
|
|
""" |
317
|
|
|
# reliability = 3 |
318
|
|
|
self.assertTrue(self.paths_between_all_users("S6:1", {'delay': 50, |
319
|
|
|
'bandwidth': 100, |
320
|
|
|
'ownership': "B"})) |
321
|
|
|
|
322
|
|
|
def test_path7_2_9(self): |
323
|
|
|
"""Tests paths between all users using constrained path algorithm, |
324
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
325
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
326
|
|
|
constraint set to 'B' |
327
|
|
|
""" |
328
|
|
|
# ownership = "B" |
329
|
|
|
self.assertTrue(self.paths_between_all_users("S4:1", {'delay': 50, |
330
|
|
|
'bandwidth': 100, |
331
|
|
|
'ownership': "B"})) |
332
|
|
|
|
333
|
|
|
def test_path7_3_0(self): |
334
|
|
|
"""Tests paths between all users using constrained path algorithm, |
335
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
336
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
337
|
|
|
constraint set to 'B' |
338
|
|
|
""" |
339
|
|
|
# ownership = "B" |
340
|
|
|
self.assertTrue(self.paths_between_all_users("S5:2", {'delay': 50, |
341
|
|
|
'bandwidth': 100, |
342
|
|
|
'ownership': "B"})) |
343
|
|
|
|
344
|
|
|
def test_path7_3_1(self): |
345
|
|
|
"""Tests paths between all users using constrained path algorithm, |
346
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
347
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
348
|
|
|
constraint set to 'B' |
349
|
|
|
""" |
350
|
|
|
# ownership = "B" |
351
|
|
|
self.assertTrue(self.paths_between_all_users("S4:2", {'delay': 50, |
352
|
|
|
'bandwidth': 100, |
353
|
|
|
'ownership': "B"})) |
354
|
|
|
|
355
|
|
|
def test_path7_3_2(self): |
356
|
|
|
"""Tests paths between all users using constrained path algorithm, |
357
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
358
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
359
|
|
|
constraint set to 'B' |
360
|
|
|
""" |
361
|
|
|
# ownership = "B" |
362
|
|
|
self.assertTrue(self.paths_between_all_users("User1:2", {'delay': 50, |
363
|
|
|
'bandwidth': 100, |
364
|
|
|
'ownership': "B"})) |
365
|
|
|
|
366
|
|
|
def test_path7_3_3(self): |
367
|
|
|
"""Tests paths between all users using constrained path algorithm, |
368
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
369
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
370
|
|
|
constraint set to 'B' |
371
|
|
|
""" |
372
|
|
|
# ownership = "B" |
373
|
|
|
self.assertTrue(self.paths_between_all_users("S5:4", {'delay': 50, |
374
|
|
|
'bandwidth': 100, |
375
|
|
|
'ownership': "B"})) |
376
|
|
|
|
377
|
|
|
def test_path7_3_4(self): |
378
|
|
|
"""Tests paths between all users using constrained path algorithm, |
379
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
380
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
381
|
|
|
constraint set to 'B' |
382
|
|
|
""" |
383
|
|
|
# ownership = "B" |
384
|
|
|
self.assertTrue(self.paths_between_all_users("S6:2", {'delay': 50, |
385
|
|
|
'bandwidth': 100, |
386
|
|
|
'ownership': "B"})) |
387
|
|
|
|
388
|
|
|
def test_path7_3_5(self): |
389
|
|
|
"""Tests paths between all users using constrained path algorithm, |
390
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
391
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
392
|
|
|
constraint set to 'B' |
393
|
|
|
""" |
394
|
|
|
# ownership = "B" |
395
|
|
|
self.assertTrue(self.paths_between_all_users("S6:5", {'delay': 50, |
396
|
|
|
'bandwidth': 100, |
397
|
|
|
'ownership': "B"})) |
398
|
|
|
|
399
|
|
|
def test_path7_3_6(self): |
400
|
|
|
"""Tests paths between all users using constrained path algorithm, |
401
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
402
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
403
|
|
|
constraint set to 'B' |
404
|
|
|
""" |
405
|
|
|
# ownership = "B" |
406
|
|
|
self.assertTrue(self.paths_between_all_users("S10:1", {'delay': 50, |
407
|
|
|
'bandwidth': 100, |
408
|
|
|
'ownership': "B"})) |
409
|
|
|
|
410
|
|
|
def test_path7_3_7(self): |
411
|
|
|
"""Tests paths between all users using constrained path algorithm, |
412
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
413
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
414
|
|
|
constraint set to 'B' |
415
|
|
|
""" |
416
|
|
|
# ownership = "B" |
417
|
|
|
self.assertTrue(self.paths_between_all_users("S8:6", {'delay': 50, |
418
|
|
|
'bandwidth': 100, |
419
|
|
|
'ownership': "B"})) |
420
|
|
|
|
421
|
|
|
def test_path7_3_8(self): |
422
|
|
|
"""Tests paths between all users using constrained path algorithm, |
423
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
424
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
425
|
|
|
constraint set to 'B' |
426
|
|
|
""" |
427
|
|
|
# ownership = "B" |
428
|
|
|
self.assertTrue(self.paths_between_all_users("S10:2", {'delay': 50, |
429
|
|
|
'bandwidth': 100, |
430
|
|
|
'ownership': "B"})) |
431
|
|
|
|
432
|
|
|
def test_path7_3_9(self): |
433
|
|
|
"""Tests paths between all users using constrained path algorithm, |
434
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
435
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
436
|
|
|
constraint set to 'B' |
437
|
|
|
""" |
438
|
|
|
# ownership = "B" |
439
|
|
|
self.assertTrue(self.paths_between_all_users("S10:3", {'delay': 50, |
440
|
|
|
'bandwidth': 100, |
441
|
|
|
'ownership': "B"})) |
442
|
|
|
|
443
|
|
|
def test_path7_4_0(self): |
444
|
|
|
"""Tests paths between all users using constrained path algorithm, |
445
|
|
|
with the delay constraint set to 50, the bandwidth constraint set |
446
|
|
|
to 100, the reliability constraint set to 3, and the ownership |
447
|
|
|
constraint set to 'B' |
448
|
|
|
""" |
449
|
|
|
# ownership = "B" |
450
|
|
|
self.assertTrue(self.paths_between_all_users("User2:1", {'delay': 50, |
451
|
|
|
'bandwidth': 100, |
452
|
|
|
'ownership': "B"})) |
453
|
|
|
|