def test_failed_command(): c = Context() (client_info, _, _) = do('foo', [FailedCommand()], context=c) assert not client_info['success']
def test_exception_command(): c = Context() (client_info, _, _) = do('foo', [ExceptedCommand()], context=c) assert not client_info['success']
def test_successful_command(): c = Context() (client_info, _, _) = do('foo', [SuccessfulCommand()], context=c) assert client_info['success']
def initialize(self): Context.initialize(self) raise Exception("I suck too")
def __init__(self, *args, **kwargs): Context.__init__(self, *args, **kwargs)