summaryrefslogtreecommitdiff
path: root/src/server-tests/test_db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-01-02 17:22:48 +0200
committerLV-426 <lv-426@taproot.org.il>2015-01-02 17:56:27 +0200
commit2bed25d005c48a0c90905509f72cbd98446dc0e5 (patch)
treecd1148ef2f639dbf77ff7bb91dc133be0e50bd90 /src/server-tests/test_db_controller.py
parent321137b26f4f68bb0407977912e9a8d4fa9995d8 (diff)
update tests to use '__label_set'
Diffstat (limited to 'src/server-tests/test_db_controller.py')
-rw-r--r--src/server-tests/test_db_controller.py22
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)