#NEWLINE# def test_pwdGetByName( self ) : #NEWLINE# #INDENT# '\n        L{_pwdGetByName} returns a tuple of items from the UNIX /etc/passwd\n        database if the L{pwd} module is present.\n        ' #NEWLINE# userdb = UserDatabase ( ) #NEWLINE# userdb . addUser ( 'alice' , 'secrit' , 1 , 2 , 'first last' , '/foo' , '/bin/sh' ) #NEWLINE# self . patch ( checkers , 'pwd' , userdb ) #NEWLINE# self . assertEqual ( checkers . _pwdGetByName ( 'alice' ) , userdb . getpwnam ( 'alice' ) )