def test_recordLength(self):
        """
        The user record returned by I{getpwuid}, I{getpwnam}, and I{getpwall}
        has a length.
        """
        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.assertIsInstance(len(entry), int)
            self.assertEqual(len(entry), 7)

        The user record returned by I{getpwuid}, I{getpwnam}, and I{getpwall}
        has a length.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_fakepwd.py