Changeset a26bed


Ignore:
Timestamp:
08/16/2008 03:29:00 PM (16 years ago)
Author:
Martijn Voncken <mvoncken@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
5c1ec8
Parents:
4ea2bf
Message:

reformat test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/tests/test_filters.py

    r4ea2bf ra26bed  
    99torrent_id = sclient.get_session_state()[0]
    1010torrent_id2 = sclient.get_session_state()[1]
    11 print torrent_id
    1211#/init
    1312
    14 
    15 #get_status_keys
     13print "#get_status_keys"
    1614#both lines should return the same if all plugins are disabled.
    1715#the 1st should be longer if the label plugin is enabled.
     
    2220print sclient.get_torrents_status(None, KEYS)
    2321
    24 
    25 
    2622print "#torrent_id filter:"
    2723print sclient.get_torrents_status({"id":[torrent_id, torrent_id2]}, KEYS)
    2824
    29 
    3025print "#filters on default status fields:"
    31 #print sclient.get_torrents_status({"state":"Paused"}, KEYS)
    3226print sclient.get_torrents_status({"state":["Paused","Downloading"]}, KEYS)
    3327print sclient.get_torrents_status({"tracker_host":["aelitis.com"]}, KEYS)
    3428
    35 
    36 
    3729print "#status fields from plugins:"
    38 #print sclient.get_torrents_status({"label":"test"}, KEYS)
    3930print sclient.get_torrents_status({"label":["test","tpb"]}, KEYS)
    4031
    41 
    4232print "#special filters (ERRORS START HERE!):"
    43 print sclient.get_torrents_status({"keyword":"az"}, KEYS)
    44 print sclient.get_torrents_status({"state":"Active"}, KEYS)
     33print sclient.get_torrents_status({"keyword":["az"]}, KEYS)
     34print sclient.get_torrents_status({"state":["Active"]}, KEYS)
Note: See TracChangeset for help on using the changeset viewer.