summaryrefslogtreecommitdiff
path: root/src/server-tests
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-03-23 17:22:09 +0200
committerLV-426 <lv-426@taproot.org.il>2015-04-01 22:25:51 +0300
commitf75ce21c1d6101bdd435d8bcf25ded0e0534a380 (patch)
treede08a2d7d942190842bab050d22de21feefd634e /src/server-tests
parent5e313384bf4a0733f2ce53d129c6a002b215d420 (diff)
neo4j_test_util: rand_label__doc()
Diffstat (limited to 'src/server-tests')
-rw-r--r--src/server-tests/neo4j_test_util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server-tests/neo4j_test_util.py b/src/server-tests/neo4j_test_util.py
index 7755032d..3aa03b46 100644
--- a/src/server-tests/neo4j_test_util.py
+++ b/src/server-tests/neo4j_test_util.py
@@ -4,6 +4,7 @@ import string
import uuid
from db_op import DB_op, DBO_cypher_query
+import neo4j_cypher
class DBO_flush_db(DBO_cypher_query):
"""
@@ -66,3 +67,6 @@ def rand_label(prefix='T_', length=8):
ret = ''.join([choice(string.ascii_lowercase)] + [choice(char_set) for _ in range(length - 1)])
ret = prefix + ret
return ret
+
+def rand_label__doc(length=8):
+ return rand_label(prefix=neo4j_cypher.META_LABEL__RZ_DOC_PREFIX, length=length)