'When L{HistoricRecvLine} receives a HOME keystroke it moves the
cursor to the beginning of the current line buffer.'

def test_home(self):

    kR = (lambda ch: self.p.keystrokeReceived(ch, None))
    for ch in iterbytes('hello,    world'):
        kR(ch)
    self.assertEqual(self.p.currentLineBuffer(), ('hello,    world', ''))
    kR(self.pt.HOME)
    self.assertEqual(self.p.currentLineBuffer(), ('', 'hello,    world'))
