@classmethod
    def create_flavor(cls, name, description, service_type):
        body = cls.admin_client.create_flavor(
            description=description, service_type=service_type,
            name=name)
        flavor = body['flavor']
        cls.flavors.append(flavor)
        return flavor
Wrapper utility that returns a test flavor.
dataset/ETHPy150Open openstack/neutron/neutron/tests/tempest/api/base.py/BaseAdminNetworkTest.create_flavor