'L{TuntapPort.write} sends a datagram into the tunnel.'

def test_write(self):

    datagram = 'a    b    c    d    e    f    g'
    self.port.startListening()
    self.port.write(datagram)
    self.assertEqual(self.system.getTunnel(self.port).writeBuffer, deque([datagram]))
