def test_pwdGetByName(self):
        userdb = UserDatabase()
        userdb.addUser(
            'alice', 'secrit', 1, 2, 'first last', '/foo', '/bin/sh')
        self.patch(checkers, 'pwd', userdb)
        self.assertEquals(
            checkers._pwdGetByName('alice'), userdb.getpwnam('alice'))
L{_pwdGetByName} returns a tuple of items from the UNIX /etc/passwd
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_checkers.py/HelperTests.test_pwdGetByName