def METHOD_NAME(self):
    entries = pwd.getpwall()
    for e in entries:
        self.assertEqual(len(e), 7)
        self.assertEqual(e[0], e.pw_name)
        self.assertIsInstance(e.pw_name, str)
        self.assertEqual(e[1], e.pw_passwd)
        self.assertIsInstance(e.pw_passwd, str)
        self.assertEqual(e[2], e.pw_uid)
        self.assertIsInstance(e.pw_uid, int)
        self.assertEqual(e[3], e.pw_gid)
        self.assertIsInstance(e.pw_gid, int)
        self.assertEqual(e[4], e.pw_gecos)
        self.assertIn(type(e.pw_gecos), (str, type(None)))
        self.assertEqual(e[5], e.pw_dir)
        self.assertIsInstance(e.pw_dir, str)
        self.assertEqual(e[6], e.pw_shell)
        self.assertIsInstance(e.pw_shell, str)
        # The following won't work, because of duplicate entries
        # for one uid
        #    self.assertEqual(pwd.getpwuid(e.pw_uid), e)
        # instead of this collect all entries for one uid
        # and check afterwards (done in test_values_extended)