def METHOD_NAME(self):
    self.check('/admin/default/shell')
    ws_url = server.base_url.replace('http://', 'ws://') + '/admin/default/webshell-data'
    ws = create_connection(ws_url)
    # Python expressions are computed
    ws.send('1 + 2')
    eq_(ws.recv(), '3')
    # Session state is maintained. Gramex can be imported
    ws.send('import gramex')
    eq_(ws.recv(), '')
    ws.send('gramex.__version__')
    eq_(ast.literal_eval(ws.recv()), gramex.__version__)
    # handler is available for use
    ws.send('handler.session')
    result = ast.literal_eval(ws.recv())
    ok_('_t' in result and 'id' in result)