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

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

src/p/y/PyWO-HEAD/tests/core/windows_test.py   PyWO(Download)
    def test_singleton(self):
        self.assertEqual(self.WM, WindowManager())
        self.assertTrue(self.WM == WindowManager())
 
    def test_name(self):
    def test_close(self):
        win = self.WM.active_window()
        self.assertTrue(win is not None)
        # close window (this is the only one)
        win.close()
        win = self.WM.active_window()
        self.assertTrue(win is None)
        self.assertEqual(self.win._win.get_wm_state().state, Xutil.NormalState)
        self.win.iconify(1)
        self.assertTrue(State.HIDDEN in self.win.state)
        self.assertEqual(self.win.geometry, win_geometry)
        self.assertEqual(self.win._win.get_wm_state().state, Xutil.IconicState)
        self.assertEqual(self.win._win.get_wm_state().state, Xutil.NormalState)
        self.win.iconify(2)
        self.assertTrue(State.HIDDEN in self.win.state)
        self.assertEqual(self.win.geometry, win_geometry)
        self.assertEqual(self.win._win.get_wm_state().state, Xutil.IconicState)

src/p/y/PyWO-HEAD/tests/core/xlib_test.py   PyWO(Download)
    def test_has_extension(self):
        self.assertTrue(XObject.has_extension('XINERAMA'))
        self.assertFalse(XObject.has_extension('FOO_BAR'))
 
    def test_has_xinerama(self):