Skip to content
Snippets Groups Projects
Verified Commit 48d78466 authored by Filipe Laíns's avatar Filipe Laíns
Browse files

tests: add test for invalid InputEvent comparations

parent f8f1ced6
No related branches found
No related tags found
1 merge request!14Add more tests and fix event_to_value
Pipeline #118419 passed
......@@ -53,3 +53,9 @@ class TestEvents(unittest.TestCase):
e2 = InputEvent(libevdev.EV_REL.REL_Y)
self.assertNotEqual(e2, e1)
self.assertNotEqual(e1, e2)
def test_event_matches_invalid(self):
e1 = InputEvent(libevdev.EV_REL.REL_X)
self.assertNotEqual(e1, 0)
self.assertNotEqual(e1, None)
self.assertNotEqual(e1, 'foo')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment