@classmethod
    def interfaces_list(cls, network_data):
        interfaces = {}
        for network in network_data:
            if_name = cls.__make_interface_name(
                network.get('dev'),
                network.get('vlan'))
            interfaces['%s_interface' % network['name']] = if_name
            if network['name'] == 'public':
                interfaces['floating_interface'] = if_name
        return interfaces
Context manager to expect warnings with the given messages.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/orchestrator/nova_serializers.py/NovaNetworkDeploymentSerializer.interfaces_list--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/testing/assertions.py/expect_warnings