'Invoked when starting a connection to make sure it\'s a supported
protocol.
:param pika.frame.Method value: The frame to check
:raises: ProtocolVersionMismatch'

def _check_for_protocol_mismatch(self, value):

    if ((value.method.version_major, value.method.version_minor) != spec.PROTOCOL_VERSION[0:2]):
        raise exceptions.ProtocolVersionMismatch(frame.ProtocolHeader(), value)
