def METHOD_NAME(self) -> None:
    """
    The configured TLS version is correctly configured by the ContextFactory.
    """
    config: JsonDict = {"federation_client_minimum_tls_version": 1}
    t = TestConfig()
    t.tls.read_config(config, config_dir_path="", data_dir_path="")
    cf = FederationPolicyForHTTPS(cast(HomeServerConfig, t))
    options = _get_ssl_context_options(cf._verify_ssl_context)
    # The context has not had any of the NO_TLS set.
    self.assertEqual(options & SSL.OP_NO_TLSv1, 0)
    self.assertEqual(options & SSL.OP_NO_TLSv1_1, 0)
    self.assertEqual(options & SSL.OP_NO_TLSv1_2, 0)