def testClosing(self):
        self.rdm.addOutput(mappend(self.transport))
        self.rdm.addOutput(mappend(self.transport))
        self.rdm.close()
        self.assertEquals(self.transport, [[(0, (athena.CLOSE, []))], [(0, (athena.CLOSE, []))]])

        self.transport = []
        self.rdm.addOutput(mappend(self.transport))
        self.assertEquals(self.transport, [[(0, (athena.CLOSE, []))]])
Translate and run the backup commands.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/Transport.testClosing--crossover with--dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/dbcommands.py/DBCommands.run_restore_commands