summaryrefslogtreecommitdiff
path: root/src-py/test_db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-12 18:03:14 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-12 18:03:14 +0200
commit0b06576fdbc76a5f208f0233dae47bb0707520d2 (patch)
tree9813fb60448cf428fcecd9b07429a0df9260960c /src-py/test_db_controller.py
parent27acfa40abeeacecc8e46088ddb671e04284b7ef (diff)
DBO_load_link_set_by_src_or_dst_id_attributes & test
Diffstat (limited to 'src-py/test_db_controller.py')
-rw-r--r--src-py/test_db_controller.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py
index cfa8ee31..258b91c8 100644
--- a/src-py/test_db_controller.py
+++ b/src-py/test_db_controller.py
@@ -81,6 +81,19 @@ 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_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)
+ self.assertEqual(len(n_set), 1)
+
+ op = dbc.DBO_load_link_set_by_src_or_dst_id_attributes(src_id='person_00')
+ n_set = self.db_ctl.exec_op(op)
+ self.assertEqual(len(n_set), 2)
+
+ op = dbc.DBO_load_link_set_by_src_or_dst_id_attributes(dst_id='skill_00')
+ n_set = self.db_ctl.exec_op(op)
+ self.assertEqual(len(n_set), 1)
+
def test_node_DB_id_lifecycle(self):
"""
test node DB id life cycle