def test_innermost(self):
    self.set_view_content('(map inc (range 10))')
    self.set_selections((9, 9))
    self.view.run_command('tutkain_evaluate', {'scope': 'innermost'})
    self.assertEquals(input('(range 10)\n'), self.get_print())
    self.eval_context(column=10)
    self.assertEquals('(range 10)\n', self.server.recv())
    self.server.send('(0 1 2 3 4 5 6 7 8 9)')
    self.assertEquals(ret('(0 1 2 3 4 5 6 7 8 9)\n'), self.get_print())
def test_innermost(self):
    self.set_view_content('(map inc (range 10))')
    self.set_selections((9, 9))
    self.view.run_command('tutkain_evaluate', {'scope': 'innermost'})
    self.assertEquals(input('(range 10)\n'), self.get_print())
    self.eval_context(column=10)
    self.assertEquals('(range 10)\n', self.server.recv())
    self.server.send('(0 1 2 3 4 5 6 7 8 9)')
    self.assertEquals(ret('(0 1 2 3 4 5 6 7 8 9)\n'), self.get_print())