def test_form(self):
    self.set_view_content('42 84')
    self.set_selections((0, 0), (3, 3))
    self.view.run_command('tutkain_evaluate', {'scope': 'form'})
    self.assertEquals(input('42\n'), self.get_print())
    self.eval_context()
    self.assertEquals(input('84\n'), self.get_print())
    self.eval_context(column=4)
    self.assertEquals('42\n', self.server.recv())
    self.server.send('42')
    self.assertEquals(ret('42\n'), self.get_print())
    self.assertEquals('84\n', self.server.recv())
    self.server.send('84')
    self.assertEquals(ret('84\n'), self.get_print())
def test_form(self):
    self.set_view_content('42 84')
    self.set_selections((0, 0), (3, 3))
    self.view.run_command('tutkain_evaluate', {'scope': 'form'})
    self.assertEquals(input('42\n'), self.get_print())
    self.eval_context()
    self.assertEquals(input('84\n'), self.get_print())
    self.eval_context(column=4)
    self.assertEquals('42\n', self.server.recv())
    self.server.send('42')
    self.assertEquals(ret('42\n'), self.get_print())
    self.assertEquals('84\n', self.server.recv())
    self.server.send('84')
    self.assertEquals(ret('84\n'), self.get_print())