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

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

src/p/y/PyWO-HEAD/tests/actions/resizer_test.py   PyWO(Download)
    def test_empty_desktop(self):
        geometry = self.win.geometry
        resized = self.resize(self.win, TOP_LEFT)
        self.assertEqual(resized.x, 0)
        self.assertEqual(resized.y, 0)
        self.assertEqual(resized.x2, geometry.x2)
        self.assertEqual(resized.y2, geometry.y2)
        self.win.set_geometry(geometry)
 
        resized = self.resize(self.win, TOP)
        self.win.set_geometry(geometry)
 
        resized = self.resize(self.win, TOP_RIGHT)
        self.assertEqual(resized.x, geometry.x)
        self.assertEqual(resized.y, 0)
        self.assertEqual(resized.x2, DESKTOP_WIDTH)
        self.assertEqual(resized.y2, geometry.y2)
        self.win.set_geometry(geometry)
 
        resized = self.resize(self.win, LEFT)
        self.win.set_geometry(geometry)
 
        resized = self.resize(self.win, ALL)
        self.assertEqual(resized.x, 0)
        self.assertEqual(resized.y, 0)