예제 #1
0
def test_failed_command():
    c = Context()

    (client_info, _, _) = do('foo', [FailedCommand()], context=c)
    assert not client_info['success']
예제 #2
0
def test_exception_command():
    c = Context()

    (client_info, _, _) = do('foo', [ExceptedCommand()], context=c)
    assert not client_info['success']
예제 #3
0
def test_successful_command():
    c = Context()

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