'A directory opened with C{openDirectory} is close when the connection
is lost.'

def test_openedDirectoryClosedWithConnection(self):

    d = self.client.openDirectory('')
    self._emptyBuffers()
    def _getFiles(openDir):
        self.serverTransport.loseConnection()
        self.clientTransport.loseConnection()
        self.serverTransport.clearBuffer()
        self.clientTransport.clearBuffer()
        self.assertEqual(self.server.openDirs, {})
    d.addCallback(_getFiles)
    return d
