@staticmethod
    def _checkMethods(methods):
        for method in methods:
            if len(method) != 2:
                msg = "AuthChallengeCell auth methods must be 2 bytes long."
                msg += " Found auth method {} bytes long."
                raise BadPayloadData(msg.format(len(method)))
            if method not in SUPPORTED_METHODS:
                msg = "Tried to use method {}, but oppy only supports method"
                msg += " {}."
                raise BadPayloadData(msg.format(method, SUPPORTED_METHODS))
dataset/ETHPy150Open nskinkel/oppy/oppy/cell/varlen.py/AuthChallengeCell._checkMethods/original