

def test_sql_batch(self):
    cmd = (((('begin;' + 'let a = create vertex set script = true;') + 'let b = select from v limit 1;') + 'let e = create edge from $a to $b;') + 'commit retry 100;')
    edge_result = self.client.batch(cmd)
    assert isinstance(cmd[0]._in, pyorient.OrientRecordLink)
    assert (edge_result[0]._in.get_hash() == '#9:0'), ("in is not equal to '#9:0': %r" % edge_result[0]._in.get_hash())
    assert isinstance(edge_result[0]._out, pyorient.OrientRecordLink)

dataset/ETHPy150Open mogui/pyorient/tests/test_reserved_words_batch.py CommandTestCase.test_sql_batch/VarMisuse@44/111 `edge_result`->`cmd`