@staticmethod
    def _normalize_expectations(channel_id, expectations):
        if isinstance(expectations, list):
            output = list()
            for value in expectations:
                if isinstance(value, str):
                    output.append('%i:%s' % (channel_id, value))
                else:
                    output.append('%i:%s' % (channel_id, value.name))
            return output
        elif utils.is_string(expectations):
            return ['%i:%s' % (channel_id, expectations)]
        return ['%i:%s' % (channel_id, expectations.name)]
Turn a class or list of classes into a list of class names.
dataset/ETHPy150Open gmr/rabbitpy/rabbitpy/connection.py/Connection._normalize_expectations