

def testReconnectionRoot(self):
    assert (self.client.get_session_token() == b'')
    global old_token
    self.client.set_session_token(old_token)
    self.client.connect('root', 'root')
    self.assertNotEquals(old_token, self.client.get_session_token())
    res = self.client.db_exists('GratefulDeadConcerts')
    self.assertTrue(res)

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