Changeset 21 for pkipplib/trunk/tests

Show
Ignore:
Timestamp:
06/02/06 21:10:02 (18 years ago)
Author:
jerome
Message:

Added support for HTTP Basic authentication ("AuthType? Basic"
and "AuthClass? User" in cupsd.conf).
Improved reliability.

Files:
1 modified

Legend:

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

    r13 r21  
    2626import pkipplib         
    2727     
    28 cups = pkipplib.CUPS()     
    29 answer = cups.getPPD("HL6050DN") 
    30 #answer = cups.getJobAttributes(566) 
     28# cups = pkipplib.CUPS() 
     29cups = pkipplib.CUPS(url="http://localhost:631", \ 
     30                     username="jerome", \ 
     31                     password="9!kijd.7") 
     32# answer = cups.getPPD("HP2100") 
     33answer = cups.getJobAttributes(150) 
     34 
    3135print answer 
     36 
    3237#print answer.operation["attributes-charset"] 
    3338