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