'Test that packets are retrieved correctly out of the buffer when
no encryption is enabled.'

def test_getPacketPlain(self):

    proto = MockTransportBase()
    proto.makeConnection(self.transport)
    self.finishKeyExchange(proto)
    self.transport.clear()
    proto.sendPacket(ord('A'), 'BC')
    proto.buf = (self.transport.value() + 'extra')
    self.assertEqual(proto.getPacket(), 'ABC')
    self.assertEqual(proto.buf, 'extra')
