Changeset 28 for pkipplib/trunk/tests

Show
Ignore:
Timestamp:
06/24/06 00:57:14 (18 years ago)
Author:
jerome
Message:

It is now possible to create a subscription.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkipplib/trunk/tests/test.py

    r21 r28  
    2626import pkipplib         
    2727     
    28 # cups = pkipplib.CUPS() 
    29 cups = pkipplib.CUPS(url="http://localhost:631", \ 
    30                      username="jerome", \ 
    31                      password="9!kijd.7") 
    32 # answer = cups.getPPD("HP2100") 
    33 answer = cups.getJobAttributes(150) 
    34  
     28cups = pkipplib.CUPS() 
     29answer = cups.createSubscription("ipp://localhost/", ["printer-added", "printer-deleted"], 
     30                                                     userdata="samplenotifier:blah", 
     31                                                     recipient="samplenotifier", 
     32                                                     charset="utf-8") 
    3533print answer 
    3634