def test_verifyValidPrivateKey(self):
        """
        Test that verifying a valid private key works.
        """
        blob = keys.Key.fromString(keydata.publicRSA_openssh).blob()
        packet = (NS(b'foo') + NS(b'none') + NS(b'publickey') + b'\x00'
                + NS(b'ssh-rsa') + NS(blob))
        d = self.authServer.ssh_USERAUTH_REQUEST(packet)
        def check(ignored):
            self.assertEqual(self.authServer.transport.packets,
                    [(userauth.MSG_USERAUTH_PK_OK, NS(b'ssh-rsa') + NS(blob))])
        return d.addCallback(check)

        Test that verifying a valid private key works.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_userauth.py