From a26beda19ba2b75a356327090a06c67dd4d31ecf Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 16 Aug 2008 15:29:00 +0000 Subject: [PATCH] reformat test --- deluge/tests/test_filters.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/deluge/tests/test_filters.py b/deluge/tests/test_filters.py index 785cb7de9..fb125d3a5 100644 --- a/deluge/tests/test_filters.py +++ b/deluge/tests/test_filters.py @@ -8,11 +8,9 @@ from deluge.ui.client import sclient sclient.set_core_uri() torrent_id = sclient.get_session_state()[0] torrent_id2 = sclient.get_session_state()[1] -print torrent_id #/init - -#get_status_keys +print "#get_status_keys" #both lines should return the same if all plugins are disabled. #the 1st should be longer if the label plugin is enabled. print sorted(sclient.get_torrent_status(torrent_id,[]).keys()) @@ -21,24 +19,16 @@ print sorted(sclient.get_status_keys()) print "#default, no filter argument." print sclient.get_torrents_status(None, KEYS) - - print "#torrent_id filter:" print sclient.get_torrents_status({"id":[torrent_id, torrent_id2]}, KEYS) - print "#filters on default status fields:" -#print sclient.get_torrents_status({"state":"Paused"}, KEYS) print sclient.get_torrents_status({"state":["Paused","Downloading"]}, KEYS) print sclient.get_torrents_status({"tracker_host":["aelitis.com"]}, KEYS) - - print "#status fields from plugins:" -#print sclient.get_torrents_status({"label":"test"}, KEYS) print sclient.get_torrents_status({"label":["test","tpb"]}, KEYS) - print "#special filters (ERRORS START HERE!):" -print sclient.get_torrents_status({"keyword":"az"}, KEYS) -print sclient.get_torrents_status({"state":"Active"}, KEYS) +print sclient.get_torrents_status({"keyword":["az"]}, KEYS) +print sclient.get_torrents_status({"state":["Active"]}, KEYS)