def setKnownConsoleSize(self, width, height):
        import tty # local import to avoid win32 issues
        class FakeFcntl(object):
            def ioctl(self, fd, opt, mutate):
                if opt != tty.TIOCGWINSZ:
                    self.fail("Only window-size queries supported.")
                return struct.pack("4H", height, width, 0, 0)
        self.patch(cftp, "fcntl", FakeFcntl())
Returns all known topics.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/test/test_cftp.py/StdioClientTests.setKnownConsoleSize--crossover with--dataset/ETHPy150Open wtolson/gnsq/gnsq/lookupd.py/Lookupd.topics