Exemplo n.º 1
0
def test_failed_command():
    c = Context()

    (client_info, _, _) = do('foo', [FailedCommand()], context=c)
    assert not client_info['success']
Exemplo n.º 2
0
def test_exception_command():
    c = Context()

    (client_info, _, _) = do('foo', [ExceptedCommand()], context=c)
    assert not client_info['success']
Exemplo n.º 3
0
def test_successful_command():
    c = Context()

    (client_info, _, _) = do('foo', [SuccessfulCommand()], context=c)
    assert client_info['success']
Exemplo n.º 4
0
 def initialize(self):
     Context.initialize(self)
     raise Exception("I suck too")
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     Context.__init__(self, *args, **kwargs)
Exemplo n.º 6
0
 def initialize(self):
     Context.initialize(self)
     raise Exception("I suck too")
Exemplo n.º 7
0
 def __init__(self, *args, **kwargs):
     Context.__init__(self, *args, **kwargs)