diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-09-28 14:31:25 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-09-28 14:31:25 +0300 |
| commit | f93e7846097e73d5f021594af16264fe7ebdf9d0 (patch) | |
| tree | 62e4a83f8673ed5dc9436e72c11143ef01792082 /src-py/test_db_controller.py | |
| parent | dd1966972b41e7fd3492f8db07b286647f39b02d (diff) | |
DBO_load_node_set_by_DB_id & test
Diffstat (limited to 'src-py/test_db_controller.py')
| -rw-r--r-- | src-py/test_db_controller.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index 6e3a42ff..3f4db98f 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -33,6 +33,14 @@ class TestDBController(unittest.TestCase): self.db_ctl.exec_cypher_query('match ()-[r]-() delete r') self.db_ctl.exec_cypher_query('match (n) delete n') + def test_node_DB_id_lifecycle(self): + """ + test node DB id life cycle + """ + id_set = self.db_ctl.exec_op(dbc.DBO_add_node_set(self.n_map)) + n_set = self.db_ctl.exec_op(dbc.DBO_load_node_set_by_DB_id(id_set)) + self.assertEqual(len(n_set), len(id_set), 'incorrect result size') + def test_node_lifecycle(self): """ test node commit & load |
