def test_recordLength(self):
        """
        The shadow user record returned by I{getspnam} and I{getspall} has a
        length.
        """
        db = self.database
        username = self.getExistingUserInfo()[0]
        for entry in [db.getspnam(username), db.getspall()[0]]:
            self.assertIsInstance(len(entry), int)
            self.assertEqual(len(entry), 9)

        The shadow user record returned by I{getspnam} and I{getspall} has a
        length.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_fakepwd.py