'When not in INSERT mode, L{HistoricRecvLine} inserts the typed
character at the cursor before the next character.'

def test_insert(self):

    kR = (lambda ch: self.p.keystrokeReceived(ch, None))
    for ch in iterbytes('xyz'):
        kR(ch)
    kR(self.pt.LEFT_ARROW)
    kR('A')
    self.assertEqual(self.p.currentLineBuffer(), ('xyA', 'z'))
    kR(self.pt.LEFT_ARROW)
    kR('B')
    self.assertEqual(self.p.currentLineBuffer(), ('xyB', 'Az'))
