def test_buildProtocolWithPrimes(self):
        """
        Group key exchanges are supported when we have the primes database.
        """
        f2 = self.makeSSHFactory(primes={1:(2,3)})

        p2 = f2.buildProtocol(None)

        self.assertIn(
            b'diffie-hellman-group-exchange-sha1', p2.supportedKeyExchanges)
        self.assertIn(
            b'diffie-hellman-group-exchange-sha256', p2.supportedKeyExchanges)

        Group key exchanges are supported when we have the primes database.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_ssh.py