def test_parseRequest_window_change(self):
        """
        The payload of a window_change request is::
            uint32  columns
            uint32  rows
            uint32  x pixels
            uint32  y pixels

        parseRequest_window_change() returns (rows, columns, x pixels,
        y pixels).
        """
        self.assertEqual(session.parseRequest_window_change(struct.pack(">4L", 1, 2, 3, 4)), (2, 1, 3, 4))
Esempio n. 2
0
    def test_parseRequest_window_change(self):
        """
        The payload of a window_change request is::
            uint32  columns
            uint32  rows
            uint32  x pixels
            uint32  y pixels

        parseRequest_window_change() returns (rows, columns, x pixels,
        y pixels).
        """
        self.assertEqual(session.parseRequest_window_change(
                struct.pack('>4L', 1, 2, 3, 4)), (2, 1, 3, 4))
Esempio n. 3
0
 def request_window_change(self, data):
     winSize = session.parseRequest_window_change(data)
     return 1
Esempio n. 4
0
 def request_window_change(self, data):
     """
     """
     winSize = session.parseRequest_window_change(data)
     return 1