def test_getpwnam(self):
        for i in range(2):
            # Get some user which exists in the database.
            username, password, uid, gid, gecos, dir, shell = self.getExistingUserInfo()

            # Now try to look it up and make sure the result is correct.
            entry = self.database.getpwnam(username)
            self.assertEquals(entry.pw_name, username)
            self.assertEquals(entry.pw_passwd, password)
            self.assertEquals(entry.pw_uid, uid)
            self.assertEquals(entry.pw_gid, gid)
            self.assertEquals(entry.pw_gecos, gecos)
            self.assertEquals(entry.pw_dir, dir)
            self.assertEquals(entry.pw_shell, shell)
I{getpwnam} accepts a username and returns the user record associated
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_fakepwd.py/UserDatabaseTestsMixin.test_getpwnam