def test_outermost(self):
    self.set_view_content('(comment (inc 1) (inc 2))')
    self.set_selections((9, 9), (17, 17))
    self.view.run_command('tutkain_evaluate', {'scope': 'outermost'})
    self.assertEquals(input('(inc 1)\n'), self.get_print())
    self.eval_context(column=10)
    self.assertEquals(input('(inc 2)\n'), self.get_print())
    self.eval_context(column=18)
    self.assertEquals('(inc 1)\n', self.server.recv())
    self.server.send('2')
    self.assertEquals('(inc 2)\n', self.server.recv())
    self.server.send('3')
    self.assertEquals(ret('2\n'), self.get_print())
    self.assertEquals(ret('3\n'), self.get_print())
def test_outermost(self):
    self.set_view_content('(comment (inc 1) (inc 2))')
    self.set_selections((9, 9), (17, 17))
    self.view.run_command('tutkain_evaluate', {'scope': 'outermost'})
    self.assertEquals(input('(inc 1)\n'), self.get_print())
    self.eval_context(column=10)
    self.assertEquals(input('(inc 2)\n'), self.get_print())
    self.eval_context(column=18)
    self.assertEquals('(inc 1)\n', self.server.recv())
    self.server.send('2')
    self.assertEquals('(inc 2)\n', self.server.recv())
    self.server.send('3')
    self.assertEquals(ret('2\n'), self.get_print())
    self.assertEquals(ret('3\n'), self.get_print())