diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-12 19:10:38 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-12 19:10:38 +0200 |
| commit | a9abe5a017b01c40615e23a279d46bb33c240e3f (patch) | |
| tree | a7b5167eb059f2e21ce78749ffd1060e12ff4c10 /src-py/test_db_controller.py | |
| parent | 1d8d5646897ca05f97bb33be5ced2b8643ae4a23 (diff) | |
DBO_load_link_id_set & test
Diffstat (limited to 'src-py/test_db_controller.py')
| -rw-r--r-- | src-py/test_db_controller.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index 446d9288..176fce4b 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -94,6 +94,15 @@ class TestDBController(unittest.TestCase): n_set = self.db_ctl.exec_op(dbc.DBO_load_node_set_by_id_attribute(['skill_00', 'person_01'])) self.assertEqual(len(n_set), 2) + def test_load_link_set_by_type(self): + op = dbc.DBO_load_link_id_set(filter_type='Knows') + id_set = self.db_ctl.exec_op(op) + self.assertEqual(len(id_set), 2) + + op = dbc.DBO_load_link_id_set(filter_type='Nan_Type') + id_set = self.db_ctl.exec_op(op) + self.assertEqual(len(id_set), 0) + def test_load_link_set_by_src_or_dst_id_attributes(self): op = dbc.DBO_load_link_set_by_src_or_dst_id_attributes(src_id='person_00', dst_id='skill_00') n_set = self.db_ctl.exec_op(op) |
