def __call__(self, connection):
        if not self.checkResumedSession and connection.resumed:
            return

        if self.x509Fingerprint:
            if connection._client:
                chain = connection.session.serverCertChain
            else:
                chain = connection.session.clientCertChain

            if self.x509Fingerprint:
                if isinstance(chain, X509CertChain):
                    if self.x509Fingerprint:
                        if chain.getFingerprint() != self.x509Fingerprint:
                            raise TLSFingerprintError(\
                                "X.509 fingerprint mismatch: %s, %s" % \
                                (chain.getFingerprint(), self.x509Fingerprint))
                elif chain:
                    raise TLSAuthenticationTypeError()
                else:
                    raise TLSNoAuthenticationError()
>>> from logpy.assoccomm import groupsizes_to_partition
dataset/ETHPy150Open splunk/splunk-webframework/contrib/tlslite/tlslite/checker.py/Checker.__call__--crossover with--dataset/ETHPy150Open logpy/logpy/logpy/assoccomm.py/groupsizes_to_partition