コード例 #1
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_map_with_backticks_in_key(self):
     assert cypher.dumps({"number `one`": 1}) == '{`number ``one```: 1}'
コード例 #2
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_list(self):
     assert cypher.dumps([4, 5, 6]) == '[4, 5, 6]'
コード例 #3
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_map(self):
     assert cypher.dumps({"one": 1}) == '{one: 1}'
コード例 #4
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_map_with_space_in_key(self):
     assert cypher.dumps({"number one": 1}) == '{`number one`: 1}'
コード例 #5
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_string(self):
     assert cypher.dumps('hello') == '"hello"'
コード例 #6
0
ファイル: cypher_test.py プロジェクト: adampassword/py2neo
 def test_can_dump_number(self):
     assert cypher.dumps(42) == '42'
コード例 #7
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_map_with_backticks_in_key(self):
     assert cypher.dumps({"number `one`": 1}) == '{`number ``one```: 1}'
コード例 #8
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_list(self):
     assert cypher.dumps([4, 5, 6]) == '[4, 5, 6]'
コード例 #9
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_map_with_space_in_key(self):
     assert cypher.dumps({"number one": 1}) == '{`number one`: 1}'
コード例 #10
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_map(self):
     assert cypher.dumps({"one": 1}) == '{one: 1}'
コード例 #11
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_number(self):
     assert cypher.dumps(42) == '42'
コード例 #12
0
ファイル: cypher_test.py プロジェクト: abhinvgpta/py2neo
 def test_can_dump_string(self):
     assert cypher.dumps('hello') == '"hello"'
コード例 #13
0
ファイル: xmlutil.py プロジェクト: zrg1993/py2neo
def cyphify(obj, ensure_ascii=True):
    return cypher.dumps(obj, separators=(",", ":"), ensure_ascii=ensure_ascii)