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)

        # print( cluster_id[0] )
        # print (cluster_id[0]._in)
        assert isinstance(edge_result[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()

        # print (cluster_id[0]._out)
        assert isinstance(edge_result[0]._out, pyorient.OrientRecordLink)
dataset/ETHPy150Open mogui/pyorient/tests/test_reserved_words_batch.py/CommandTestCase.test_sql_batch/original