Changeset a26bed
- Timestamp:
- 08/16/2008 03:29:00 PM (16 years ago)
- Branches:
- 2.0.x, develop, extjs4-port, master
- Children:
- 5c1ec8
- Parents:
- 4ea2bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/tests/test_filters.py
r4ea2bf ra26bed 9 9 torrent_id = sclient.get_session_state()[0] 10 10 torrent_id2 = sclient.get_session_state()[1] 11 print torrent_id12 11 #/init 13 12 14 15 #get_status_keys 13 print "#get_status_keys" 16 14 #both lines should return the same if all plugins are disabled. 17 15 #the 1st should be longer if the label plugin is enabled. … … 22 20 print sclient.get_torrents_status(None, KEYS) 23 21 24 25 26 22 print "#torrent_id filter:" 27 23 print sclient.get_torrents_status({"id":[torrent_id, torrent_id2]}, KEYS) 28 24 29 30 25 print "#filters on default status fields:" 31 #print sclient.get_torrents_status({"state":"Paused"}, KEYS)32 26 print sclient.get_torrents_status({"state":["Paused","Downloading"]}, KEYS) 33 27 print sclient.get_torrents_status({"tracker_host":["aelitis.com"]}, KEYS) 34 28 35 36 37 29 print "#status fields from plugins:" 38 #print sclient.get_torrents_status({"label":"test"}, KEYS)39 30 print sclient.get_torrents_status({"label":["test","tpb"]}, KEYS) 40 31 41 42 32 print "#special filters (ERRORS START HERE!):" 43 print sclient.get_torrents_status({"keyword": "az"}, KEYS)44 print sclient.get_torrents_status({"state": "Active"}, KEYS)33 print sclient.get_torrents_status({"keyword":["az"]}, KEYS) 34 print sclient.get_torrents_status({"state":["Active"]}, KEYS)
Note:
See TracChangeset
for help on using the changeset viewer.