def test_event_processing(self):
        key = 'a'
        modifiers = 0
        func = self._func
        args = (1, 2, 3)
        kwargs = dict(foo=1, bar=2)

        event.globalKeys.add(key=key, func=func, func_args=args,
                             func_kwargs=kwargs)

        r = event._process_global_event_key(key, modifiers)
        assert r[0] == args
        assert r[1] == kwargs
    def test_event_processing(self):
        key = 'a'
        modifiers = 0
        func = self._func
        args = (1, 2, 3)
        kwargs = dict(foo=1, bar=2)

        event.globalKeys.add(key=key, func=func, func_args=args,
                             func_kwargs=kwargs)

        r = event._process_global_event_key(key, modifiers)
        assert r[0] == args
        assert r[1] == kwargs