def _checkFailed(self, ignored):
        """
        Check that the authentication has failed.
        """
        self.assertEqual(self.authServer.transport.packets[-1],
                (userauth.MSG_USERAUTH_FAILURE,
                NS(b'password,publickey') + b'\x00'))

        Check that the authentication has failed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_userauth.py