def test_passInCheckers(self):
        """
        L{UNIXPasswordDatabase} takes a list of functions to check for UNIX
        user information.
        """
        password = crypt.crypt('secret', 'secret')
        userdb = UserDatabase()
        userdb.addUser('anybody', password, 1, 2, 'foo', '/bar', '/bin/sh')
        checker = checkers.UNIXPasswordDatabase([userdb.getpwnam])
        self.assertLoggedIn(
            checker.requestAvatarId(UsernamePassword(b'anybody', b'secret')),
            b'anybody')

        L{UNIXPasswordDatabase} takes a list of functions to check for UNIX
        user information.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_checkers.py