Commit c3aa3615 authored by Tomeu Vizoso's avatar Tomeu Vizoso
Browse files

Add test for incorrect attributes in Gdk.Event

parent 204b45c7
......@@ -68,6 +68,10 @@ class TestGdk(unittest.TestCase):
self.assertEquals(event.x_root, 0)
self.assertEquals(event.y_root, 5)
event = Gdk.Event()
event.type = Gdk.EventType.SCROLL
self.assertRaises(AttributeError, lambda: getattr(event, 'foo_bar'))
class TestGtk(unittest.TestCase):
def test_container(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment