

def setUp(self):
    self.client = pyorient.OrientDB('localhost', 2424)
    self.client.connect('root', 'root')
    db_name = 'test_tr'
    try:
        self.client.db_drop(db_name)
    except pyorient.PyOrientCommandException as e:
        print(e)
    finally:
        db = self.client.db_create(db_name, pyorient.DB_TYPE_GRAPH, pyorient.STORAGE_TYPE_MEMORY)
    self.cluster_info = self.client.db_open(db_name, 'admin', 'admin', pyorient.DB_TYPE_GRAPH, '')

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