Browse files

The example should do something that would generate an exception.

I need to figure out how to use the twisted unit test framework
instead of continually reinventing it.
  • Loading branch information...
1 parent 2f23384 commit 4a94e8cb68622775bdca12bc945520725a808643 @dustin committed Oct 29, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 example/
3 example/
@@ -26,6 +26,9 @@ def worker(e):
print_cb("Released lock: test")).addErrback(
print_cb("Failed to release lock")))
+ l.append(e.unlock("not_locked").addCallback(
+ print_cb("Released lock: not_locked")).addErrback(
+ print_cb("Failed to release lock not_locked")))
return defer.DeferredList(l)
d=protocol.ClientCreator(reactor, elock.ELock).connectTCP(sys.argv[1], 11400)

0 comments on commit 4a94e8c

Please sign in to comment.