@@ -0,0 +1,1141 @@
+#!/usr/bin/env python%0A%0Aimport sys%0Aimport os%0Aimport unittest%0A%0Asys.path.append(os.path.join(os.path.dirname(__file__), '..'))%0A%0Aimport Xlib.display%0Aimport Xlib.protocol.display%0A%0A%0Aclass TestXlibDisplay(unittest.TestCase):%0A    def setUp(self):%0A        self.display = Xlib.display.Display(%22:99.0%22)%0A%0A    def test_display_instance(self):%0A        print %221%22%0A        self.assertIsInstance(self.display, Xlib.display.Display)%0A%0A    def test_default_DisplayName(self):%0A        print %222%22%0A        self.assertEqual(self.display.get_display_name(), %22:99.0%22)%0A%0A    def test_default_screenNumber(self):%0A        self.assertEqual(self.display.get_default_screen(), 0)%0A%0A    def test_returns_no_events(self):%0A        self.assertEqual(self.display.pending_events(), 0)%0A%0A    def test_pointer_mapping_is_list(self):%0A        self.assertIsInstance(self.display.get_pointer_mapping(), list)%0A%0A    def test_set_get_pointer_mapping(self):%0A        length = len(self.display.get_pointer_mapping())%0A        self.display.set_pointer_mapping(%5B0%5D * length)%0A        self.assertEqual(self.display.get_pointer_mapping(), %5B0%5D * length)%0A%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Test commit