~ubuntu-branches/ubuntu/raring/libuser/raring

« back to all changes in this revision

Viewing changes to tests/pwhash.py

  • Committer: Bazaar Package Importer
  • Author(s): Ghe Rivero
  • Date: 2008-03-11 17:40:21 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080311174021-vngcaurluxihaht4
Tags: 1:0.56.8.dfsg.1-1
* New upstream release
* New download homepage at copyright file
* Lintian clean: copyright-without-copyright-notice 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import libuser
 
2
 
 
3
admin = libuser.admin()
 
4
 
 
5
e = admin.initUser('pwhash_user')
 
6
admin.addUser(e, False, False)
 
7
admin.setpassUser(e, 'password', False)
 
8
res = e[libuser.SHADOWPASSWORD][0]
 
9
admin.deleteUser(e, False, False)
 
10
 
 
11
print res