'Test that dataReceived parses packets and dispatches them to
ssh_* methods.'

def test_dataReceived(self):

    kexInit = [False]
    def stubKEXINIT(packet):
        kexInit[0] = True
    self.proto.ssh_KEXINIT = stubKEXINIT
    self.proto.dataReceived(self.transport.value())
    self.assertTrue(self.proto.gotVersion)
    self.assertEqual(self.proto.ourVersionString, self.proto.otherVersionString)
    self.assertTrue(kexInit[0])
