def test_keyboard_event(self):
        code = 123
        event = KeyboardEvent(code)
        self.assertEqual(event.key_code, code)
        self.assertIn(str(code), str(event))
Check Keyboard event is consistent.
dataset/ETHPy150Open peterbrittain/asciimatics/tests/test_events.py/TestEvents.test_keyboard_event