Beispiel #1
0
def test_register():
    d = {}
    register(d)
    #anonymous wrapper
    assert d['commands']
Beispiel #2
0
 def test_wrapper_success(self):
     d = {}
     register(d)
     d['commands'](self.obj, '', None)
     assert self.obj.delegate.received == [CommandListEvent(self.expected)]