def test_recordIndexable(self):
        db = self.database
        username, password, uid, gid, gecos, dir, shell = self.getExistingUserInfo()
        for entry in [db.getpwuid(uid), db.getpwnam(username), db.getpwall()[0]]:
            self.assertEquals(entry[0], username)
            self.assertEquals(entry[1], password)
            self.assertEquals(entry[2], uid)
            self.assertEquals(entry[3], gid)
            self.assertEquals(entry[4], gecos)
            self.assertEquals(entry[5], dir)
            self.assertEquals(entry[6], shell)

            self.assertEquals(len(entry), len(list(entry)))
            self.assertRaises(IndexError, getitem, entry, 7)
The user record returned by I{getpwuid}, I{getpwnam}, and I{getpwall}
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_fakepwd.py/UserDatabaseTestsMixin.test_recordIndexable