'Group key exchanges are not supported when we don\'t have the primes
database.'

def test_buildProtocolNoPrimes(self):

    f1 = self.makeSSHFactory(primes=None)
    p1 = f1.buildProtocol(None)
    self.assertNotIn('diffie-hellman-group-exchange-sha1', p1.supportedKeyExchanges)
    self.assertNotIn('diffie-hellman-group-exchange-sha256', p1.supportedKeyExchanges)
