    def test_mouse_event(self):
        """
        Check Mouse event is consistent.
        """
        x = 1
        y = 2
        buttons = MouseEvent.DOUBLE_CLICK
        event = MouseEvent(x, y, buttons)
        self.assertEqual(event.x, x)
        self.assertEqual(event.y, y)
        self.assertEqual(event.buttons, buttons)
        self.assertIn(f"({x}, {y})", str(event))
        self.assertIn(str(buttons), str(event))
Check Mouse event is consistent.
tests/test_events.py