diff options
Diffstat (limited to 'src/server-tests/test_db_controller.py')
| -rw-r--r-- | src/server-tests/test_db_controller.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/server-tests/test_db_controller.py b/src/server-tests/test_db_controller.py index b013576f..8fa2f207 100644 --- a/src/server-tests/test_db_controller.py +++ b/src/server-tests/test_db_controller.py @@ -205,11 +205,11 @@ class TestDBController(unittest.TestCase): n_2_id = rand_id() n_T = 'T_test_topo_diff_commit' - n_set = [{'__type': n_T, 'id': n_0_id }, - {'__type': n_T, 'id': n_1_id }, - {'__type': n_T, 'id': n_2_id }] - l_set = [{'__type': n_T, '__src_id': n_0_id, '__dst_id': n_1_id}, - {'__type': n_T, '__src_id': n_1_id, '__dst_id': n_0_id}] + n_set = [{'__label_set': n_T, 'id': n_0_id }, + {'__label_set': n_T, 'id': n_1_id }, + {'__label_set': n_T, 'id': n_2_id }] + l_set = [{'__label_set': n_T, '__src_id': n_0_id, '__dst_id': n_1_id}, + {'__label_set': n_T, '__src_id': n_1_id, '__dst_id': n_0_id}] topo_diff = Topo_Diff(node_set_add=n_set, link_set_add=l_set) @@ -282,12 +282,12 @@ class TestDBController(unittest.TestCase): n_3_id = rand_id() n_T = 'T_test_rm_node_set' - n_set = [{'__type': n_T, 'id': n_0_id }, - {'__type': n_T, 'id': n_1_id }, - {'__type': n_T, 'id': n_2_id }, - {'__type': n_T, 'id': n_3_id }] - l_set = [{'__type': n_T, '__src_id': n_2_id, '__dst_id': n_2_id}, - {'__type': n_T, '__src_id': n_2_id, '__dst_id': n_3_id}] + n_set = [{'__label_set': [n_T], 'id': n_0_id }, + {'__label_set': [n_T], 'id': n_1_id }, + {'__label_set': [n_T], 'id': n_2_id }, + {'__label_set': [n_T], 'id': n_3_id }] + l_set = [{'__label_set': [n_T], '__src_id': n_2_id, '__dst_id': n_2_id}, + {'__label_set': [n_T], '__src_id': n_2_id, '__dst_id': n_3_id}] topo_diff = Topo_Diff(node_set_add=n_set, link_set_add=l_set) |
