Skip to content

Commit

Permalink
general test for success
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaite committed Apr 23, 2010
1 parent 150e3e1 commit fb5a2be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/test_client/test_context.py
Expand Up @@ -34,6 +34,12 @@ def initialize(self):
Context.initialize(self)
raise Exception("I suck too")

def test_successful_command():
c = Context()

(client_info, _, _) = do('foo', [ SuccessfulCommand() ], context=c)
assert client_info['success']

def test_context_failure():
c = FailedContextInit()

Expand Down

0 comments on commit fb5a2be

Please sign in to comment.