Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(27)  |  Call(27)  |  Derive(0)  |  Import(0)

src/p/y/PyWO-HEAD/tests/core/windows_test.py   PyWO(Download)
        # create new window, and check if new is active
        new_win = self.map_window(name='Test Window 2')
        self.assertNotEqual(new_win, self.win)
        # close second window, check if first is active
        new_win.close()
    def test_activate(self):
        # create window
        new_win = self.map_window(name='Test Window 2')
        self.assertNotEqual(self.WM.active_window(), self.win)
        self.win.activate()
        self.assertFalse(State.MAXIMIZED_VERT in self.win.state)
        geometry = self.win.geometry
        self.assertNotEqual(geometry, workarea)
        extents = self.win.extents
        self.assertEqual(extents, Xlib_mock.EXTENTS_NORMAL)
        self.assertFalse(State.MAXIMIZED_VERT in self.win.state)
        geometry = self.win.geometry
        self.assertNotEqual(geometry, workarea)
        self.assertEqual(geometry, win_geometry)
        extents = self.win.extents
        self.assertFalse(State.MAXIMIZED_VERT in self.win.state)
        geometry = self.win.geometry
        self.assertNotEqual(geometry, workarea)
        extents = self.win.extents
        self.assertEqual(extents, Xlib_mock.EXTENTS_NORMAL)