(self)
| 47 | user_input._NO_EXCLUSIVE_KEY, self.input_map._active_exclusive) |
| 48 | |
| 49 | def test_binding(self): |
| 50 | self.input_map.bind(self.callback, user_input.KEY_UP) |
| 51 | expected_dict = { |
| 52 | (user_input.KEY_UP, user_input.MOD_NONE): (False, self.callback)} |
| 53 | self.assertDictEqual(expected_dict, self.input_map._action_callbacks) |
| 54 | |
| 55 | def test_binding_exclusive(self): |
| 56 | self.input_map.bind(self.callback, user_input.Exclusive(user_input.KEY_UP)) |