diff options
Diffstat (limited to 'src-py/test_db_controller.py')
| -rw-r--r-- | src-py/test_db_controller.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index 57403e98..6e3a42ff 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -26,6 +26,13 @@ class TestDBController(unittest.TestCase): def setUp(self): self.flush_db() + def flush_db(self): + """ + complete DB flush: remove all nodes & links + """ + self.db_ctl.exec_cypher_query('match ()-[r]-() delete r') + self.db_ctl.exec_cypher_query('match (n) delete n') + def test_node_lifecycle(self): """ test node commit & load |
