def test_failOnBadPassword(self):
        def verifyCryptedPassword(crypted, pw):
            return False
        def getpwnam(username):
            return [username, username]
        self.patch(checkers, 'verifyCryptedPassword', verifyCryptedPassword)
        checker = checkers.UNIXPasswordDatabase([getpwnam])
        credential = UsernamePassword(b'username', b'username')
        self.assertUnauthorizedLogin(checker.requestAvatarId(credential))
If the verifyCryptedPassword function doesn't verify the password, the
dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_checkers.py/UNIXPasswordDatabaseTests.test_failOnBadPassword