

def testReconnection(self):
    assert (self.client.get_session_token() == b'')
    global old_token
    self.client.set_session_token(old_token)
    record = self.client.query('select from V where @rid = #9:1')
    assert isinstance(record[0], pyorient.otypes.OrientRecord)

dataset/ETHPy150Open mogui/pyorient/tests/test_token_auth.py TokenAuthTest.testReconnection/original