From 4ab357717275343a40e1e94802e1ceb154865683 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 15 Aug 2008 18:36:04 +0000 Subject: [PATCH] Add a test script for testing the signalreceiver --- deluge/tests/test_signalreceiver.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 deluge/tests/test_signalreceiver.py diff --git a/deluge/tests/test_signalreceiver.py b/deluge/tests/test_signalreceiver.py new file mode 100644 index 000000000..a49bd7f50 --- /dev/null +++ b/deluge/tests/test_signalreceiver.py @@ -0,0 +1,9 @@ +from deluge.configmanager import ConfigManager +import deluge.xmlrpclib as xmlrpclib + +config = ConfigManager("gtkui.conf") + +client = xmlrpclib.ServerProxy("http://localhost:" + str(config["signal_port"])) + +client.emit_signal("torrent_finished", "abc123") +