From 8aebcf62a2ecba669210d9e0c1d9812f4487b8da Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 26 Jan 2010 11:05:00 +0000 Subject: [PATCH] Signal additions now return a handler --- terminatorlib/tests/testsignalman.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminatorlib/tests/testsignalman.py b/terminatorlib/tests/testsignalman.py index ff6450a2..be0879bb 100755 --- a/terminatorlib/tests/testsignalman.py +++ b/terminatorlib/tests/testsignalman.py @@ -6,6 +6,7 @@ >>> widget = TestWidget() >>> signalman = Signalman() >>> signalman.new(widget, 'test1', handler) +1 >>> signalman.cnxids[widget].keys() ['test1'] >>> widget.signals.values() @@ -16,7 +17,9 @@ False >>> widget.signals.values() [] >>> signalman.new(widget, 'test2', handler) +2 >>> signalman.new(widget, 'test3', handler) +3 >>> signalman.remove_signal(widget, 'test2') >>> signalman.cnxids[widget].keys() ['test3']