Changeset 28 for pkipplib/trunk/tests
- Timestamp:
- 06/24/06 00:57:14 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkipplib/trunk/tests/test.py
r21 r28 26 26 import pkipplib 27 27 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 28 cups = pkipplib.CUPS() 29 answer = cups.createSubscription("ipp://localhost/", ["printer-added", "printer-deleted"], 30 userdata="samplenotifier:blah", 31 recipient="samplenotifier", 32 charset="utf-8") 35 33 print answer 36 34