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

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

src/p/y/PyWO-HEAD/tests/core/xlib_test.py   PyWO(Download)
    def test_str2_methods_invalid_input(self):
        self.assertRaises(ValueError, XObject.str2modifiers, 'fsdfd')
        self.assertRaises(ValueError, XObject.str2keycode, 'Alt')
        self.assertRaises(ValueError, XObject.str2modifiers_keycode, 'Alt')
 

src/p/y/PyWO-HEAD/tests/core/windows_test.py   PyWO(Download)
        self.assertEqual(self.WM.desktop, 0)
        # invalid string desktop_id
        self.assertRaises(ValueError, self.WM.set_desktop, 'a')
 
    def test_desktops(self):
        self.assertEqual(self.win.desktop, 0)
        # invalid string desktop_id
        self.assertRaises(ValueError, self.win.set_desktop, 'a')
 
    def assertEqualGeometry(self, geometry, x, y, width, height):