

def test_sql_batch_3(self):
    cluster_id = self.client.command('create class fb extends V')
    cluster_id = self.client.command('create class response extends V')
    cluster_id = self.client.command('create class followed_by extends E')
    cmd = "begin;let a = create vertex fb set name = 'd1';let c = select from fb limit 1;let d = select from response limit 1;let e = create edge from $c to $d;commit;"
    if ((self.client.version.major == 2) and (self.client.version.minor >= 1)):
        with self.assertRaises(pyorient.PyOrientCommandException):
            cluster_id = self.client.batch(cmd)
    else:
        cluster_id = self.client.batch(cmd)

dataset/ETHPy150Open mogui/pyorient/tests/test_reserved_words_batch.py CommandTestCase.test_sql_batch_3/original