diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-01-05 19:10:57 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-01-05 19:11:50 +0200 |
| commit | 3322a112b1cb99adb5108767494b2ca8efc57a77 (patch) | |
| tree | 47071374ec092b3e167bd4628ca12955c95b4209 /src/server-tests/test_db_controller.py | |
| parent | 7bb6c89f41ea8fe84608ef36340824784932e940 (diff) | |
update test_add_node_set()
Diffstat (limited to 'src/server-tests/test_db_controller.py')
| -rw-r--r-- | src/server-tests/test_db_controller.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server-tests/test_db_controller.py b/src/server-tests/test_db_controller.py index 420d3c9d..6d608dd0 100644 --- a/src/server-tests/test_db_controller.py +++ b/src/server-tests/test_db_controller.py @@ -21,10 +21,11 @@ from model.graph import Attr_Diff from model.graph import Topo_Diff from model.model import Link from neo4j_test_util import flush_db -from neo4j_test_util import gen_rand_data +from neo4j_test_util import DBO_random_data_generation from neo4j_test_util import rand_id from neo4j_util import Neo4JException from rz_server import Config +import neo4j_test_util class TestDBController(unittest.TestCase): @@ -83,7 +84,10 @@ class TestDBController(unittest.TestCase): i = i + 1 def test_add_node_set(self): - n_map = { 'T_test_add_node_set': [{'id': rand_id()}, {'id': rand_id()}] } + n_label = neo4j_test_util.rand_label() + n_0 = test_util.generate_random_node_dict(n_label) + n_1 = test_util.generate_random_node_dict(n_label) + n_map = { n_label: [n_0, n_1] } op = DBO_add_node_set(n_map) self.assertEqual(len(op.statement_set), 1) # assert a single statement is issued |
