':py:obj:`Connection.get_cipher_bits` returns the number of secret bits
of the currently used cipher.'

def test_get_cipher_bits(self):

    (server, client) = self._loopback()
    (server_cipher_bits, client_cipher_bits) = (server.get_cipher_bits(), client.get_cipher_bits())
    self.assertIsInstance(server_cipher_bits, int)
    self.assertIsInstance(client_cipher_bits, int)
    self.assertEqual(server_cipher_bits, client_cipher_bits)
