コード例 #1
0
 def test_anonymous_traversal(self):
     bytecode = __.__(1).bytecode
     assert 0 == len(bytecode.bindings.keys())
     assert 0 == len(bytecode.source_instructions)
     assert 1 == len(bytecode.step_instructions)
     assert "inject" == bytecode.step_instructions[0][0]
     assert 1 == bytecode.step_instructions[0][1]
     ##
     bytecode = __.start().bytecode
     assert 0 == len(bytecode.bindings.keys())
     assert 0 == len(bytecode.source_instructions)
     assert 0 == len(bytecode.step_instructions)
コード例 #2
0
ファイル: test_traversal.py プロジェクト: joshsh/tinkerpop
 def test_anonymous_traversal(self):
     bytecode = __.__(1).bytecode
     assert 0 == len(bytecode.bindings.keys())
     assert 0 == len(bytecode.source_instructions)
     assert 1 == len(bytecode.step_instructions)
     assert "inject" == bytecode.step_instructions[0][0]
     assert 1 == bytecode.step_instructions[0][1]
     ##
     bytecode = __.start().bytecode
     assert 0 == len(bytecode.bindings.keys())
     assert 0 == len(bytecode.source_instructions)
     assert 0 == len(bytecode.step_instructions)