@classmethod
    def create_qos_policy(cls, name, description, shared, tenant_id=None):
        body = cls.admin_client.create_qos_policy(
            name, description, shared, tenant_id)
        qos_policy = body['policy']
        cls.qos_policies.append(qos_policy)
        return qos_policy
Auto detect encoding and return unicode.
dataset/ETHPy150Open openstack/neutron/neutron/tests/tempest/api/base.py/BaseNetworkTest.create_qos_policy--crossover with--dataset/ETHPy150Open michaelliao/transwarp/transwarp/urlfetch.py/encode