diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-01-02 17:22:48 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-01-02 17:56:27 +0200 |
| commit | 2bed25d005c48a0c90905509f72cbd98446dc0e5 (patch) | |
| tree | cd1148ef2f639dbf77ff7bb91dc133be0e50bd90 /src/server-tests | |
| parent | 321137b26f4f68bb0407977912e9a8d4fa9995d8 (diff) | |
update tests to use '__label_set'
Diffstat (limited to 'src/server-tests')
| -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) |
